public override void OnInspectorGUI() { DrawDefaultInspector(); FX_Controller myScript = (FX_Controller)target; if (GUILayout.Button("Stop Particle")) { myScript.StopParticle(); } if (GUILayout.Button("Play Particle")) { myScript.PlayParticle(); } }
void Awake() { levelManager = GameObject.FindObjectOfType <LevelManager>(); soundManager = GameObject.FindObjectOfType <SoundManager>(); fx_Controller = GameObject.FindObjectOfType <FX_Controller>(); }
void Awake() { instance = this; }