Ejemplo n.º 1
0
    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>()));
        }
    }