Esempio n. 1
0
 public static void DestroyUnit(this GameObject self)
 {
     PUnitManager.DestroyUnit(self);
 }
Esempio n. 2
0
 public static GameObject CreateUnit(this GameObject self)
 {
     return(PUnitManager.CreateUnit(self));
 }
Esempio n. 3
0
        protected void Start()
        {
            PUnitManager.CreateUnit(cnf.SceneController);

            Destroy(gameObject);
        }
Esempio n. 4
0
 protected void Awake()
 {
     PUnitPool.ForceInit();
     PUnitManager.ForceInit();
 }
Esempio n. 5
0
 public static void DestroyUnit <T>(this T self) where T : PUnit
 {
     PUnitManager.DestroyUnit(self);
 }
Esempio n. 6
0
 public static T CreateUnit <T>(this T self) where T : PUnit
 {
     return(PUnitManager.CreateUnit(self));
 }