Пример #1
0
 void DestroySystem()
 {
     //manually switch camera control over
     cameraChanger.ChangeCam(1);
     setCamera.AdjustCameraForPlaying();
     //end cam switch
     canvasMessage.SetActive(false);
     //make the sheep start floating away
     parentObject.AddComponent <Rigidbody>().useGravity = false;
     parentObject.GetComponent <Rigidbody>().AddForce(0.3f, 0.4f, 0.3f, ForceMode.Impulse);
     //destroy this script
     Destroy(SpaceKey.GetComponent <Rigidbody>());
     Destroy(this);
 }
Пример #2
0
 void Handle_OnDialogueEnd(Dialogue dialogueItem)
 {
     Debug.Log("set camera heard dialogue ended, giving control back to players camera");
     AdjustCameraForPlaying();
     cameraChanger.ChangeCam(1);
 }