Esempio n. 1
0
    IEnumerator OnPlayerActivate()
    {
        if (player)
        {
            player.SetActive(true);
            gun.EnableGun(false);
            SetPlayerPosRot(new Vector3(21.5f, 0, -1), new Vector3(0, 180, 0));

            yield return(new WaitForSeconds(1));

            ParticleController.Exclamation(player.transform.position, 2);

            yield return(new WaitForSeconds(0.5f));

            yield return(StartCoroutine(CustomUtilities.MovLocRot(player, Vector3.zero, new Vector3(0, 90, 0), 0.5f)));

            yield return(new WaitForSeconds(0.3f));

            NotificationCentre.PostNotification(this, "OnEnemyAppear");
        }
    }