void OnTriggerEnter2D(Collider2D col) { if (col.gameObject.tag == "Item") { currentState = Granny_States.Falling; } }
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; }
public void Wait() { this.currentState = Granny_States.Waiting; }