示例#1
0
    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();
        }
    }
示例#2
0
 void Awake()
 {
     levelManager  = GameObject.FindObjectOfType <LevelManager>();
     soundManager  = GameObject.FindObjectOfType <SoundManager>();
     fx_Controller = GameObject.FindObjectOfType <FX_Controller>();
 }
示例#3
0
 void Awake()
 {
     instance = this;
 }