// 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(); }
// 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(); }