private void Awake() { puppymanager = GameObject.FindObjectOfType <PuppyManager>(); zoneState = GetComponent <ZoneState>(); escapeState = GetComponent <EscapeState>(); kickedState = GetComponent <KickedState>(); initialState = GetComponent <KickedState>(); }
private void Awake() { gameover = GameObject.Find("GameOver"); puppymanager = GameObject.FindObjectOfType <PuppyManager>(); machine = GetComponent <StateMachinePuppy>(); }
// Start is called before the first frame update private void Awake() { puppymanager = GameObject.FindObjectOfType <PuppyManager>(); }