public void setNoRespawn(bool autoDestroy) { noRespawn = true; if (autoDestroy) { summonManager = gcm.GetComponent<SummonPartsManager>(); StartCoroutine("destroyAfter"); } }
override protected void initializeRest() { summonManager = (SummonPartsManager) objectsManager; mRenderer = GetComponent<Renderer>(); goldSkill = (Skill_Gold)SkillManager.sm.getSkill("Gold"); beatAnimation = GetComponent<Animation>(); beatAnimation.wrapMode = WrapMode.Once; RhythmManager.rm.registerCallback(GetInstanceID(), () => { beatAnimation.Play(); }); }