public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        Script_IceSpikeAttack attack = (Script_IceSpikeAttack)target;

        if (GUILayout.Button("Spike(Up)"))
        {
            attack.Spike(Directions.Up);
        }
    }
Exemple #2
0
    public override void Effect()
    {
        Debug.Log($"{name} Effect()");
        iceSpikeAttack.Spike(player.FacingDirection);

        // NOTE Ensure the triggered Effect animation time <= time we remain in Effect state.
        player.AnimatorEffectTrigger();

        Script_VCamManager.VCamMain.GetComponent <Script_CameraShake>().Shake(
            shakeTime,
            shakeAmp,
            shakeFreq,
            null
            );
    }