namespace ET { public static class UnitHelper { public static Unit GetMyUnitFromZoneScene(Scene zoneScene) { PlayerComponent playerComponent = zoneScene.GetComponent(); Scene currentScene = zoneScene.GetComponent().Scene; return currentScene.GetComponent().Get(playerComponent.MyId); } public static Unit GetMyUnitFromCurrentScene(Scene currentScene) { PlayerComponent playerComponent = currentScene.Parent.Parent.GetComponent(); return currentScene.GetComponent().Get(playerComponent.MyId); } } }