Exemple #1
0
        public Game()
        {
            //Add this assemby for reflection
            Engine.AssetManager.TypeDatabase.AddAssembly(typeof(Game).Assembly);

            m_rootObject     = new GameObject("Root");
            m_rootObject.Tag = "Root";
            m_instance       = this;

            m_screenShake = new ScreenShake();
            m_screenFocus = new ScreenFocus();
        }
Exemple #2
0
        // Use this for initialization
        void Start()
        {
			player = gameObject;
			drone = GameObject.FindGameObjectWithTag("Drone");

			cam = GetComponentInChildren<Camera>();
			DroneCAM = drone.GetComponentInChildren<Camera>();
            mainCharacter = GetComponent<ThirdPersonCharacter>();
			playerControl = mainCharacter.GetComponent<Player>();
			screenFocus = mainCharacter.GetComponent<ScreenFocus>();

			DroneCAM.enabled = false;
		}