void Awake() { _Animator = GameObject.FindObjectOfType <AnimationRelay>(); _Player = GameObject.FindObjectOfType <Player>(); _Ball = GameObject.FindObjectOfType <Ball>(); _Start.onClick.AddListener(StartGame); }
private void Awake() { _GameData = new GameData(); _GameData.Strength = 15; _GameData.Agility = 75; CurrentState = PlayerState.Idel; _Animator = GetComponent <AnimationRelay>(); IsActive = false; }