void Awake() { baseAttacks = new Dictionary <AttackInputType, PlayerAttack> { { AttackInputType.Attack1, attack1 }, { AttackInputType.Attack2, attack2 } }; behaviourCoroutine = this.StartSafeCoroutine(Primer()); if (handleInputFlash == null) { handleInputFlash = GameObject.Find("PlayerCharacter").GetComponent <HandlePlayerInputFlash>(); } InitializeAttackDictionary(); }
void Awake() { baseAttacks = new Dictionary<AttackInputType, PlayerAttack> { { AttackInputType.Attack1, attack1 }, { AttackInputType.Attack2, attack2 } }; behaviourCoroutine = this.StartSafeCoroutine(Primer()); if (handleInputFlash == null){ handleInputFlash = GameObject.Find("PlayerCharacter").GetComponent<HandlePlayerInputFlash>(); } InitializeAttackDictionary(); }