示例#1
0
 // Use this for initialization
 void Start()
 {
     pm = this.GetComponent <playermovement>();
     spriteContainer = GameObject.FindGameObjectWithTag("Player").GetComponent <spriteContainers>();
     walking         = spriteContainer.getPlayerUnarmedWalk();
     legsSpr         = spriteContainer.getPlayerLegs();
     attacking       = spriteContainer.getPlayerPunch();
 }
示例#2
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();
 }