private void OnEnemySpeakEvent(AgeCalculator obj) { if (obj != null) { obj.ResetAge(); obj.DeadAge = Mathf.FloorToInt(UnityEngine.Random.value * 1000) + 500; StartCoroutine(vc.DisplayPlayerSpeak(obj.GetComponent <PlayerController>())); } }
private void OnEnemySpeakEvent(AgeCalculator obj) { if (obj != null) { obj.ResetAge(); obj.DeadAge = Mathf.FloorToInt(UnityEngine.Random.value * 1000) + 500; StartCoroutine(vc.DisplayPlayerSpeak(obj.GetComponent <PlayerController>())); } }