Ejemplo n.º 1
0
 // 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;
 }
Ejemplo n.º 2
0
 // 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;
 }