Example #1
0
        void Start()
        {
            dfUnity        = DaggerfallUnity.Instance;
            streamingWorld = GameObject.FindObjectOfType <StreamingWorld>();
            titleScreen    = GameObject.FindObjectOfType <ShowTitleScreen>();
            //songPlayer = GameObject.FindObjectOfType<DaggerfallSongPlayer>();
            playerEnterExit = GetComponent <PlayerEnterExit>();

            //if (songPlayer)
            //    songPlayer.Song = SongFilesAll.song_03;
        }
        void Start()
        {
            dfUnity         = DaggerfallUnity.Instance;
            streamingWorld  = GameObject.FindObjectOfType <StreamingWorld>();
            playerEnterExit = GetComponent <PlayerEnterExit>();
            playerGPS       = GetComponent <PlayerGPS>();
            playerMotor     = GetComponent <PlayerMotor>();
            playerMouseLook = GameObject.FindObjectOfType <PlayerMouseLook>();
            titleScreen     = GameObject.FindObjectOfType <ShowTitleScreen>();

            // Get starting run speed
            if (playerMotor)
            {
                startRunSpeed = playerMotor.runSpeed;
            }
        }
        void Start()
        {
            dfUnity = DaggerfallUnity.Instance;
            streamingWorld = GameObject.FindObjectOfType<StreamingWorld>();
            playerEnterExit = GetComponent<PlayerEnterExit>();
            playerGPS = GetComponent<PlayerGPS>();
            playerMotor = GetComponent<PlayerMotor>();
            playerMouseLook = GameObject.FindObjectOfType<PlayerMouseLook>();
            titleScreen = GameObject.FindObjectOfType<ShowTitleScreen>();

            // Get starting run speed
            if (playerMotor)
                startRunSpeed = playerMotor.runSpeed;

            // Get starting torch range
            if (PlayerTorch != null)
                startTorchRange = PlayerTorch.range;
        }