public static void DestroyUnit(this GameObject self) { PUnitManager.DestroyUnit(self); }
public static GameObject CreateUnit(this GameObject self) { return(PUnitManager.CreateUnit(self)); }
protected void Start() { PUnitManager.CreateUnit(cnf.SceneController); Destroy(gameObject); }
protected void Awake() { PUnitPool.ForceInit(); PUnitManager.ForceInit(); }
public static void DestroyUnit <T>(this T self) where T : PUnit { PUnitManager.DestroyUnit(self); }
public static T CreateUnit <T>(this T self) where T : PUnit { return(PUnitManager.CreateUnit(self)); }