Exemple #1
0
 public void resetSprites()
 {
     counter      = 0;
     walking      = spriteContainer.getPlayerUnarmedWalk();
     attacking    = spriteContainer.getPlayerPunch();
     torso.sprite = walking[0];
 }
Exemple #2
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();
 }