namespace ET.Client { public static partial class UnitHelper { public static Unit GetMyUnitFromClientScene(Scene root) { PlayerComponent playerComponent = root.GetComponent(); Scene currentScene = root.GetComponent().Scene; return currentScene.GetComponent().Get(playerComponent.MyId); } public static Unit GetMyUnitFromCurrentScene(Scene currentScene) { PlayerComponent playerComponent = currentScene.Root().GetComponent(); return currentScene.GetComponent().Get(playerComponent.MyId); } } }