// Use this for initialization void Start() { Instance = this; CameraSwitch.Lockoff = 0; RotateLock.guiOn = false; OpenDoor.guiOn = false; RotateLock.guiOn = false; OpenDoor.guiOn = false; leaveButton = false; pm = GameObject.Find("Player").GetComponent <PlayerMove>(); lc = GameObject.Find("Lock Camera").GetComponent <Camera>(); mp = GameObject.Find("Painting").GetComponent <MovePainting>(); }
private void Awake() { grabPointGO = GameObject.Find(grabPointGOName); if (!grabPointGO) { Debug.Log("No grabPointGO found."); } examineObject = GameObject.FindObjectOfType <ExamineObject>(); if (!examineObject) { Debug.Log("No examineObject found."); } }
// Use this for initialization void Start() { Instance = this; CameraSwitch.Lockoff = 0; RotateLock.guiOn = false; OpenDoor.guiOn = false; RotateLock.guiOn = false; OpenDoor.guiOn = false; leaveButton = false; pm = GameObject.Find("Player").GetComponent<PlayerMove>(); lc = GameObject.Find("Lock Camera").GetComponent<Camera>(); mp = GameObject.Find("Painting").GetComponent<MovePainting>(); }