// Use this for initialization void Awake() { mParticleSys = this.gameObject.GetComponentInChildren<ParticleSystem>(); mSwitch = this.gameObject.GetComponent<CGimmickSwich>(); }
// Use this for initialization void Awake() { mSwitch = this.gameObject.GetComponent<CGimmickSwich>(); }