Exemplo n.º 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();
     }
 }
Exemplo n.º 2
0
 //Call by inherited class UnitTower, caching inherited UnitTower instance to this instance
 public void SetSubClassInt(UnitTower unit)
 {
     unitT=unit;
     subClass=_UnitSubClass.Tower;
 }
Exemplo n.º 3
0
 //Call by inherited class UnitCreep, caching inherited UnitCreep instance to this instance
 public void SetSubClassInt(UnitCreep unit)
 {
     unitC=unit;
     subClass=_UnitSubClass.Creep;
 }
Exemplo n.º 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();
 }
Exemplo n.º 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();
 }
Exemplo n.º 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();
 }
Exemplo n.º 7
0
 //Call by inherited class UnitTower, caching inherited UnitTower instance to this instance
 public void SetSubClassInt(UnitTower unit)
 {
     unitT    = unit;
     subClass = _UnitSubClass.Tower;
 }
Exemplo n.º 8
0
 //Call by inherited class UnitCreep, caching inherited UnitCreep instance to this instance
 public void SetSubClassInt(UnitCreep unit)
 {
     unitC    = unit;
     subClass = _UnitSubClass.Creep;
 }