Exemplo n.º 1
0
    // Changes control over to a new satellite, disabling control of the previous one
    public void SetCurrentSatellite(SatellitePlayerController newSatellite)
    {
        currentSatellite.isBeingControlled = false;

        newSatellite.isBeingControlled = true;
        currentSatellite = newSatellite;
    }
    private void InitializeInput()
    {
        playerController = GetComponent <SatellitePlayerController>();

        inputManager = GetComponent <SatelliteInputManager>();

        transmissionManager = GameObject.FindGameObjectWithTag(("TransmissionManager")).GetComponent <TransmissionManager>();
    }
Exemplo n.º 3
0
    private Scene currentScene;                         // represents the current level

    void Awake()
    {
        instance = this;

        currentSatellite      = startingPlanet.satellite;
        numOfPlanetsActivated = 0;
        playerBeatLevel       = false;
    }
    private void OnTriggerEnter(Collider other)
    {
        if (other.gameObject.CompareTag(("Player")))
        {
            SatellitePlayerController player = GameObject.FindGameObjectWithTag("Player").GetComponent <SatellitePlayerController>();

            player.PlayerDeath();
        }
    }