예제 #1
0
 // Use this for initialization
 void Start()
 {
     checkpoints        = GameObject.FindObjectsOfType <Checkpoints>().ToList();
     _checkpointSound   = GameObject.FindGameObjectWithTag("CheckpointSound").GetComponent <AudioSource>();
     _player1MoveScript = GameObject.FindObjectOfType <Player1MoveScript>();
     _player2MoveScript = GameObject.FindObjectOfType <Player2MoveScript>();
     _scoreScript       = GameObject.FindObjectOfType <ScoreScript>();
 }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     player1LevelScript = GameObject.FindObjectOfType<Player1LevelScript>();
     player2LevelScript = GameObject.FindObjectOfType<Player2LevelScript>();
     player1MoveScript = GameObject.FindObjectOfType<Player1MoveScript>();
     player2MoveScript = GameObject.FindObjectOfType<Player2MoveScript>();
     confirmScript = GameObject.FindObjectOfType<ConfirmScript>();
 }
예제 #3
0
 // Use this for initialization
 void Start()
 {
     player1LevelScript = GameObject.FindObjectOfType <Player1LevelScript>();
     player2LevelScript = GameObject.FindObjectOfType <Player2LevelScript>();
     player1MoveScript  = GameObject.FindObjectOfType <Player1MoveScript>();
     player2MoveScript  = GameObject.FindObjectOfType <Player2MoveScript>();
     confirmScript      = GameObject.FindObjectOfType <ConfirmScript>();
 }
예제 #4
0
 // Use this for initialization
 void Start()
 {
     _confirmScript    = GameObject.FindObjectOfType <ConfirmScript>();
     _p1MoveScript     = GameObject.FindObjectOfType <Player1MoveScript>();
     _p2MoveScript     = GameObject.FindObjectOfType <Player2MoveScript>();
     _scoreScript      = GameObject.FindObjectOfType <ScoreScript>();
     _coinSound        = GameObject.FindGameObjectWithTag("CoinPickUp").GetComponent <AudioSource>();
     _trackBuildScript = GameObject.FindObjectOfType <TrackBuildScript>();
 }
예제 #5
0
 // Use this for initialization
 void Start()
 {
     if (GameObject.FindObjectOfType <ConfirmScript>().Tutorial == false)
     {
         round = GameObject.FindObjectOfType <ConfirmScript>().Round;
     }
     _player1MoveScript  = GameObject.FindObjectOfType <Player1MoveScript>();
     _player1LevelScript = GameObject.FindObjectOfType <Player1LevelScript>();
     _powerupScriptP1    = GameObject.FindObjectOfType <PowerUpScriptP1>();
     _scoreScript        = GameObject.FindObjectOfType <ScoreScript>();
     _hittingWall        = GameObject.Find("HittingWall");
     _player2LevelScript = GameObject.FindObjectOfType <Player2LevelScript>();
     _player2MoveScript  = GameObject.FindObjectOfType <Player2MoveScript>();
     _powerUpScriptP2    = GameObject.FindObjectOfType <PowerUpScriptP2>();
     _confirmScript      = GameObject.FindObjectOfType <ConfirmScript>();
 }
예제 #6
0
 // Use this for initialization
 void Start()
 {
     _confirmScript      = GameObject.FindObjectOfType <ConfirmScript>();
     _finishP1           = GameObject.Find("FinishP1");
     _dnfP1              = GameObject.Find("dnfP1");
     _finishP2           = GameObject.Find("FinishP2");
     _dnfp2              = GameObject.Find("dnfP2");
     _winnaarP2          = GameObject.Find("WinnaarP2");
     _winnaarP1          = GameObject.Find("WinnaarP1");
     _scoreScript        = GameObject.FindObjectOfType <ScoreScript>();
     _musicScript        = GameObject.FindObjectOfType <MusicScript>();
     _player1LevelScript = GameObject.FindObjectOfType <Player1LevelScript>();
     _player2LevelScript = GameObject.FindObjectOfType <Player2LevelScript>();
     _player1MoveScript  = GameObject.FindObjectOfType <Player1MoveScript>();
     _player2MoveScript  = GameObject.FindObjectOfType <Player2MoveScript>();
     _raceEnd            = GameObject.FindGameObjectWithTag("RaceEnd");
 }
예제 #7
0
 // Use this for initialization
 void Start()
 {
     _confirmScript = GameObject.FindObjectOfType<ConfirmScript>();
     _finishP1 = GameObject.Find("FinishP1");
     _dnfP1 = GameObject.Find("dnfP1");
     _finishP2 = GameObject.Find("FinishP2");
     _dnfp2 = GameObject.Find("dnfP2");
     _winnaarP2 = GameObject.Find("WinnaarP2");
     _winnaarP1 = GameObject.Find("WinnaarP1");
     _scoreScript = GameObject.FindObjectOfType<ScoreScript>();
     _musicScript = GameObject.FindObjectOfType<MusicScript>();
     _player1LevelScript = GameObject.FindObjectOfType<Player1LevelScript>();
     _player2LevelScript = GameObject.FindObjectOfType<Player2LevelScript>();
     _player1MoveScript = GameObject.FindObjectOfType<Player1MoveScript>();
     _player2MoveScript = GameObject.FindObjectOfType<Player2MoveScript>();
     _raceEnd = GameObject.FindGameObjectWithTag("RaceEnd");
 }
예제 #8
0
    void Start()
    {
        _defaultPlayer1Y   = GameObject.FindObjectOfType <Player1MoveScript>().transform.position.y;
        _jumpHeightP1      = _defaultPlayer1Y;
        _sinus             = Mathf.Sin(0.1f);
        _defaultRotationP1 = GameObject.FindObjectOfType <BankingP1Script>().transform.rotation.y;
        _rotationP1        = _defaultRotationP1;
        _player1Rotation   = GameObject.FindObjectOfType <BankingP1Script>().transform.rotation;
        if (GameObject.FindObjectOfType <ConfirmScript>().Tutorial == false)
        {
            _player2Rotation   = GameObject.FindObjectOfType <BankingP2Script>().transform.rotation;
            _defaultPlayer2Y   = GameObject.FindObjectOfType <Player2MoveScript>().transform.position.y;
            _defaultRotationP2 = GameObject.FindObjectOfType <BankingP2Script>().transform.rotation.y;
            _jumpHeightP2      = _defaultPlayer2Y;

            _rotationP2 = _defaultRotationP2;
        }

        _player1MoveScript = GameObject.FindObjectOfType <Player1MoveScript>();
        _bankingP1Script   = GameObject.FindObjectOfType <BankingP1Script>();
        _player2MoveScript = GameObject.FindObjectOfType <Player2MoveScript>();
        _bankingP2Script   = GameObject.FindObjectOfType <BankingP2Script>();
    }
 // Use this for initialization
 void Start()
 {
     if (GameObject.FindObjectOfType<ConfirmScript>().Tutorial == false)
     {
         round = GameObject.FindObjectOfType<ConfirmScript>().Round;
     }
     _player1MoveScript = GameObject.FindObjectOfType<Player1MoveScript>();
     _player1LevelScript = GameObject.FindObjectOfType<Player1LevelScript>();
     _powerupScriptP1 = GameObject.FindObjectOfType<PowerUpScriptP1>();
     _scoreScript = GameObject.FindObjectOfType<ScoreScript>();
     _hittingWall = GameObject.Find("HittingWall");
     _player2LevelScript = GameObject.FindObjectOfType<Player2LevelScript>();
     _player2MoveScript = GameObject.FindObjectOfType<Player2MoveScript>();
     _powerUpScriptP2 = GameObject.FindObjectOfType<PowerUpScriptP2>();
     _confirmScript = GameObject.FindObjectOfType<ConfirmScript>();
 }
예제 #10
0
 // Use this for initialization
 void Start()
 {
     _confirmScript = GameObject.FindObjectOfType<ConfirmScript>();
     _p1MoveScript = GameObject.FindObjectOfType<Player1MoveScript>();
     _p2MoveScript = GameObject.FindObjectOfType<Player2MoveScript>();
     _scoreScript = GameObject.FindObjectOfType<ScoreScript>();
     _coinSound = GameObject.FindGameObjectWithTag("CoinPickUp").GetComponent<AudioSource>();
     _trackBuildScript = GameObject.FindObjectOfType<TrackBuildScript>();
 }
예제 #11
0
    void Start()
    {
        _defaultPlayer1Y = GameObject.FindObjectOfType<Player1MoveScript>().transform.position.y;
        _jumpHeightP1 = _defaultPlayer1Y;
        _sinus = Mathf.Sin(0.1f);
        _defaultRotationP1 = GameObject.FindObjectOfType<BankingP1Script>().transform.rotation.y;
        _rotationP1 = _defaultRotationP1;
        _player1Rotation = GameObject.FindObjectOfType<BankingP1Script>().transform.rotation;
        if (GameObject.FindObjectOfType<ConfirmScript>().Tutorial == false)
        {
        _player2Rotation = GameObject.FindObjectOfType<BankingP2Script>().transform.rotation;
            _defaultPlayer2Y = GameObject.FindObjectOfType<Player2MoveScript>().transform.position.y;
            _defaultRotationP2 = GameObject.FindObjectOfType<BankingP2Script>().transform.rotation.y;
            _jumpHeightP2 = _defaultPlayer2Y;

            _rotationP2 = _defaultRotationP2;
        }

        _player1MoveScript = GameObject.FindObjectOfType<Player1MoveScript>();
        _bankingP1Script = GameObject.FindObjectOfType<BankingP1Script>();
        _player2MoveScript = GameObject.FindObjectOfType<Player2MoveScript>();
        _bankingP2Script = GameObject.FindObjectOfType<BankingP2Script>();
    }
예제 #12
0
 // Use this for initialization
 void Start()
 {
     checkpoints = GameObject.FindObjectsOfType<Checkpoints>().ToList();
     _checkpointSound = GameObject.FindGameObjectWithTag("CheckpointSound").GetComponent<AudioSource>();
     _player1MoveScript = GameObject.FindObjectOfType<Player1MoveScript>();
     _player2MoveScript = GameObject.FindObjectOfType<Player2MoveScript>();
     _scoreScript = GameObject.FindObjectOfType<ScoreScript>();
 }