// Use this for initialization void Start() { Player = GameObject.FindGameObjectWithTag("Player"); Cam = Camera.main; CRb = Cam.GetComponent <Rigidbody>(); pos = Cam.GetComponent <PositionRefresher>(); }
// Use this for initialization void Start() { Player = GameObject.FindGameObjectWithTag("Player"); Cam = Camera.main.GetComponent <PositionRefresher>(); UIPopupDisabled.SetActive(false); UIPopupEnabled.SetActive(false); GatePosition = DoorAnimator.transform.position; DoorAnimator.enabled = false; Label.text = NameofDest; }
// Use this for initialization void Start() { Pos = Camera.main.gameObject.GetComponent <PositionRefresher>(); }