Пример #1
0
 public void EndCameraLock()
 {
     valid = false;
     if (camera != null)
     {
         camera.ChangeModeWithMove(0, this.transform.position, camera.PlayerTransform.position);
     }
 }
Пример #2
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.tag == "Player")
     {
         //camera = collision.gameObject.GetComponent<CameraControl>();
         if (valid == false)
         {
             camera = collision.gameObject.GetComponent <TestPlayer>().camera;
             valid  = true;
             camera.ChangeModeWithMove(1, camera.transform.position, this.transform.position);
             camera.TargetCameraPoint = CameraPoint;
             //カットインを作成
             if (cutin != null)
             {
                 MakeCutIn();
             }
         }
     }
 }