protected override void allTriggeredEvent() { base.allTriggeredEvent(); sheepModel.SetActive(true); ani.eventfunc = startAI; ani.NextAnimation(); ItemSpawner.Instance.canSpawn = true; }
protected override void allTriggeredEvent() { base.allTriggeredEvent(); partsys.gameObject.transform.parent = transform; partsys.startLifetime = 1; partsys.startColor = Color.red; partsys.startSpeed = 1.0f; partsys.startSize = 0.3f; partsys.maxParticles = 100; partsys.Clear(); partsys.Stop(); partsys.Emit(100); //if (!isBoss) StartCoroutine(PlayAllTriggerAudio(AudioManager.Instance.wormOuch)); //else // StartCoroutine (PlayAllTriggerAudio (AudioManager.Instance.winClip)); ani.eventfunc = destroyWorm; ani.NextAnimation(); }
protected override void allTriggeredEvent() { base.allTriggeredEvent(); bushModel.SetActive(true); if (!isFinalPlant) { if (stage >= ItemSpawner.Instance.currentStage) { ItemSpawner.Instance.canSpawn = true; } if (isTutorial) { ItemSpawner.Instance.nextStage = true; } } if (popController != null) { popController.eventfunc = popDone; popController.NextAnimation(); } else { popDone(); } wireframeAnimator.SetTrigger("Stop"); if (isFinalPlant) { AudioManager.Instance.play2DSound(AudioManager.Instance.endGameClip); } else { StartCoroutine(PlayAllTriggerAudio(AudioManager.Instance.winClip)); } }
public void LoadMainScene() { control.eventfunc = LoadMainSceneDirect; control.NextAnimation(); }