Example #1
0
 //Call by inherited class UnitCreep, caching inherited UnitCreep instance to this instance
 public void SetSubClass(UnitCreep unit)
 {
     unitC    = unit;
     subClass = _UnitSubClass.Creep;
     if (!unitC.flying)
     {
         gameObject.layer = LayerManager.LayerCreep();
     }
     else
     {
         gameObject.layer = LayerManager.LayerCreepF();
     }
 }
Example #2
0
 //Call by inherited class UnitTower, caching inherited UnitTower instance to this instance
 public void SetSubClassInt(UnitTower unit)
 {
     unitT=unit;
     subClass=_UnitSubClass.Tower;
 }
Example #3
0
 //Call by inherited class UnitCreep, caching inherited UnitCreep instance to this instance
 public void SetSubClassInt(UnitCreep unit)
 {
     unitC=unit;
     subClass=_UnitSubClass.Creep;
 }
Example #4
0
 //Call by inherited class UnitTower, caching inherited UnitTower instance to this instance
 public void SetSubClass(UnitTower unit)
 {
     unitT=unit;
     subClass=_UnitSubClass.Tower;
     gameObject.layer=LayerManager.LayerTower();
 }
Example #5
0
 //Call by inherited class UnitCreep, caching inherited UnitCreep instance to this instance
 public void SetSubClass(UnitCreep unit)
 {
     unitC=unit;
     subClass=_UnitSubClass.Creep;
     if(!unitC.flying) gameObject.layer=LayerManager.LayerCreep();
     else gameObject.layer=LayerManager.LayerCreepF();
 }
Example #6
0
 //Call by inherited class UnitTower, caching inherited UnitTower instance to this instance
 public void SetSubClass(UnitTower unit)
 {
     unitT            = unit;
     subClass         = _UnitSubClass.Tower;
     gameObject.layer = LayerManager.LayerTower();
 }
Example #7
0
 //Call by inherited class UnitTower, caching inherited UnitTower instance to this instance
 public void SetSubClassInt(UnitTower unit)
 {
     unitT    = unit;
     subClass = _UnitSubClass.Tower;
 }
Example #8
0
 //Call by inherited class UnitCreep, caching inherited UnitCreep instance to this instance
 public void SetSubClassInt(UnitCreep unit)
 {
     unitC    = unit;
     subClass = _UnitSubClass.Creep;
 }