public override void BeginState() { base.BeginState(); GetComponent <RedHatHIT>().StopAllCoroutines(); if (_manager.dashEffect != null) { _manager.dashEffect.SetActive(false); _manager.dashEffect = null; } StartCoroutine(GameLib.BlinkOff(_manager.materialList)); GameLib.DissoveActive(_manager.materialList, true); StartCoroutine(GameLib.Dissolving(_manager.materialList)); var voice = _manager.sound.monsterVoice; voice.PlayMonsterVoice(this.gameObject, voice.redhatDeadVoice); useGravity = false; _manager.CC.detectCollisions = false; _manager.mr.shadowCastingMode = UnityEngine.Rendering.ShadowCastingMode.Off; _manager.agent.speed = 0; _manager.agent.angularSpeed = 0; }
public override void BeginState() { base.BeginState(); GetComponent <MacHIT>().StopAllCoroutines(); GameLib.DissoveActive(_manager.materialList, true); StartCoroutine(GameLib.Dissolving(_manager.materialList)); StartCoroutine(GameLib.BlinkOff(_manager.materialList)); if (!PlayerFSMManager.Instance.isSkill4) { var voice = _manager.sound.monsterVoice; voice.PlayMonsterVoice(this.gameObject, voice.macDieVoice); } useGravity = false; _manager.CC.detectCollisions = false; _manager.mr.shadowCastingMode = UnityEngine.Rendering.ShadowCastingMode.Off; }
public override void BeginState() { base.BeginState(); GetComponent <TiberHIT>().StopAllCoroutines(); GameLib.DissoveActive(_manager.materialList, true); StartCoroutine(GameLib.BlinkOff(_manager.materialList)); StartCoroutine(GameLib.Dissolving(_manager.materialList)); useGravity = false; _manager.CC.detectCollisions = false; _manager.mr.shadowCastingMode = UnityEngine.Rendering.ShadowCastingMode.Off; var voice = _manager.sound.monsterVoice; voice.PlayMonsterVoice(gameObject, voice.tiberDieVoice); _manager.agent.speed = 0; _manager.agent.angularSpeed = 0; }