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; // ÒôƵ²¥·Å GameManager.Instance.SoundManager.PlaySound(ESoundType.Effect, "Magic"); } private new void OnDisable() { base.OnDisable(); GameManager.Instance.PlayerManager.Enable = true; } public void ShowMagic(EDirectionType direction) { GetComponent().SetFloat("direction", (int)direction); GetComponent().SetTrigger("show"); } }