// Use this for initialization void Start() { for (int i = 1; i <= maxNum; i++) { GameObject go = GameObject.Find("Bracket" + i); bracketList.Add(go); } InitZNCM(); MyEventSystem.AddListenter("BeginMove", FaceGuardIn); MyEventSystem.AddListenter("Step2", Step2); MyEventSystem.AddListenter("Step3", Step3); MyEventSystem.AddListenter("Step4", Step4); MyEventSystem.AddListenter("Step5", Step5); MyEventSystem.AddListenter("ZNCMrestart", Restart); }
// Use this for initialization void Start() { GameObject p = Resources.Load <GameObject>("PenWu"); p.SetActive(false); penwuParticleGroup1.Add(GameObject.Instantiate <GameObject>(p)); penwuParticleGroup1.Add(GameObject.Instantiate <GameObject>(p)); penwuParticleGroup1.Add(GameObject.Instantiate <GameObject>(p)); penwuParticleGroup2.Add(GameObject.Instantiate <GameObject>(p)); penwuParticleGroup2.Add(GameObject.Instantiate <GameObject>(p)); penwuParticleGroup2.Add(GameObject.Instantiate <GameObject>(p)); SLFather = GameObject.Find("SLFather").GetComponent <MakeAnimation>(); SLFather.state = MakeAnimation.AnimationState.play; //leftArmAni = GameObject.Find("钻头机械臂001").GetComponent<Animator>(); //rightArmAim = GameObject.Find("钻头机械臂002").GetComponent<Animator>(); for (int i = 0; i < maxNUM; i++) { GameObject go = GameObject.Find("Ban" + i); if (go != null) { BanList.Add(go); GameObject childGo = FindChildAll(go, child); if (childGo != null) { BanChildList.Add(childGo); } } } InitZNCM(); MyEventSystem.AddListenter("ZNCMrestart", Restart); }