Camera changing Scene
Hi Guys i have one scene with a camera an special script. Also i have a GameManager class with this code to dont destroy it (the game manager and the childs objects)
private IStateBase activeState;
private static StateManager instanceRef;
private Main mainScript;
void Awake() {
if (instanceRef == null) {
instanceRef = this;
DontDestroyOnLoad(gameObject);
Debug.Log("Object DONT detroyed! ->" + gameObject.name);
}
else{
DestroyImmediate(gameObject);
Debug.Log("Object Detroyed!!! -> " + gameObject.name);
}
} // Awake
everything goes smooth....But, the camera is stick no get any input. I check it and it has the script attached and all the features as it has to be.... anyway i can´t move. The camera is a child of the gameobject with has the awake method... if i remove the awake method the camera works... so i don´t have a clue what it is happend any clue guys?
Comment