Exemplo n.º 1
0
 private void UnWarp(bool isIntro)
 {
     motherShip.HyperSpaceEnd.Play();
     foreach (var effect in warpEffects)
     {
         effect.Stop();
     }
     MusicPlayer.main.ExitWarp(isIntro);
     warpTimer         = Time.time + currentWarpEndDuration;
     warpEffectPlaying = true;
     warping           = false;
     player.Activate();
     ReEnableGhostParts();
 }
Exemplo n.º 2
0
    public void SpawnPlayer()
    {
        Vector3 SpawnPoint = GameManager.instance.SpawnPosition;

        if (currentPlayer == null)
        {
            currentPlayer = Instantiate(PlayerPrefab, SpawnPoint, transform.rotation).GetComponent <PlayerMovement>();
        }
        else
        {
            currentPlayer.transform.position = SpawnPoint;
        }

        currentPlayer.Activate();
        camera          = FindObjectOfType <CinemachineVirtualCamera>();
        camera.m_Follow = currentPlayer.transform;
    }
Exemplo n.º 3
0
 public void Activate(bool val)
 {
     playerShooting.Activate(val);
     playerMovement.Activate(val);;
 }
Exemplo n.º 4
0
 private void Activate()
 {
     player.Activate();
     currentHP = maxHP;
 }