27 lines
703 B
C#
27 lines
703 B
C#
|
using System;
|
|||
|
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
public class MagicController : EnvironmentController
|
|||
|
{
|
|||
|
private new void OnEnable()
|
|||
|
{
|
|||
|
base.OnDisable();
|
|||
|
GameManager.Instance.PlayerManager.Enable = false;
|
|||
|
// <20><>Ƶ<EFBFBD><C6B5><EFBFBD><EFBFBD>
|
|||
|
GameManager.Instance.SoundManager.PlaySound(ESoundType.Effect, "Magic");
|
|||
|
}
|
|||
|
|
|||
|
private new void OnDisable()
|
|||
|
{
|
|||
|
base.OnDisable();
|
|||
|
GameManager.Instance.PlayerManager.Enable = true;
|
|||
|
}
|
|||
|
public void ShowMagic(EDirectionType direction)
|
|||
|
{
|
|||
|
GetComponent<Animator>().SetFloat("direction", (int)direction);
|
|||
|
GetComponent<Animator>().SetTrigger("show");
|
|||
|
}
|
|||
|
}
|