Esempio n. 1
0
    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();
    }
Esempio n. 2
0
    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();
    }