Пример #1
0
 public static void DestroyUnit(this GameObject self)
 {
     PUnitManager.DestroyUnit(self);
 }
Пример #2
0
 public static GameObject CreateUnit(this GameObject self)
 {
     return(PUnitManager.CreateUnit(self));
 }
Пример #3
0
        protected void Start()
        {
            PUnitManager.CreateUnit(cnf.SceneController);

            Destroy(gameObject);
        }
Пример #4
0
 protected void Awake()
 {
     PUnitPool.ForceInit();
     PUnitManager.ForceInit();
 }
Пример #5
0
 public static void DestroyUnit <T>(this T self) where T : PUnit
 {
     PUnitManager.DestroyUnit(self);
 }
Пример #6
0
 public static T CreateUnit <T>(this T self) where T : PUnit
 {
     return(PUnitManager.CreateUnit(self));
 }