Example #1
0
 // Use this for initialization
 void Start()
 {
     eAI       = this.GetComponent <EnemyAI>();
     sc        = GameObject.FindGameObjectWithTag("Player").GetComponent <spriteContainers>();
     walking   = sc.enemyDoubleBwalk;
     attacking = sc.getEnemyWeapon(name);
     ewc       = this.GetComponent <EnemyWeponContoller>();
     legsSpr   = sc.getPlayerLegs();
 }
Example #2
0
 public void setTorsoSpr(string name)
 {
     torsoSpr     = sc.getEnemyWalk(name);
     attackingSpr = sc.getEnemyWeapon(name);
     tCounter     = 0;
 }