Ejemplo n.º 1
0
 void OnTriggerEnter2D(Collider2D col)
 {
     if (col.gameObject.tag == "Item")
     {
         currentState = Granny_States.Falling;
     }
 }
Ejemplo n.º 2
0
        public void SpawnGranny(Vector2 start, Vector2 destination, bool flip)
        {
            this.transform.position = start;
            this.destination        = destination;

            this.grannySpriteRenderer.flipX = flip;

            this.currentState = GrannyController.Granny_States.Moving;
        }
Ejemplo n.º 3
0
 public void Wait()
 {
     this.currentState = Granny_States.Waiting;
 }