예제 #1
0
    private void Awake()
    {
        health = maxHealth;
        player = GameObject.FindGameObjectWithTag("Player");

        if (characterAudioprofile is IAudioActions)
        {
            audioAction = GetComponent <IAudioActions>();
        }
    }
예제 #2
0
    void Start()
    {
        if (useAttackRate)
        {
            nextAttackTime = attackRate;
        }
        else
        {
            nextAttackTime = 0;
        }

        if (characterAudioProfile is IAudioActions)
        {
            audioAction = GetComponent <IAudioActions>();
        }
    }