Beispiel #1
0
    public void Warp()
    {
        motherShip.GetComponent <MotherShip>().HyperSpaceStart.Play();

        LevelManager.main.DisableLevel();
        foreach (var effect in warpEffects)
        {
            effect.Play();
        }
        player.transform.position = motherShip.transform.position;
        player.Disable();
        MusicPlayer.main.EnterWarp();

        warpTimer         = Time.time + warpDurationStart;
        warpEffectPlaying = true;
        warping           = true;
        Invoke("ComeOutOfWarp", Random.Range(LevelManager.main.MinWarpLength, LevelManager.main.MaxWarpLength));
    }
Beispiel #2
0
 void Start()
 {
     cam            = Camera.main;
     movable        = motherShip.GetComponent <Movable>();
     reachableTiles = motherShip.GetComponent <ReachableTilesDisplay>();
 }