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(); }
// 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; }