// Use this for initialization void Start() { Came = came.GetComponent <Camera>(); point = new Vector3(11.81f, -3.19f, 0f); cb = came.GetComponent <CameraBlack>(); cmwp = came.GetComponent <CameraMoveWithPlayer>(); //originalColor = Came.backgroundColor; curColor = 0f; }
// Use this for initialization void Start() { cb = came.GetComponent <CameraBlack>(); pc = player.GetComponent <PlayerControl>(); if (nextdoor != null) { transitionto = nextdoor.GetComponent <Transform>().position; } originalColor = came.GetComponent <Camera>().backgroundColor; curColor = 0f; }