public void CloseBookText() { GameObject raycast = GameObject.FindWithTag("Raycast"); RaycastPlayer script = raycast.GetComponent <RaycastPlayer>(); script.CloseBookText(); if (script.GetTerminalEnabled()) { script.CloseTerminalText(); } }
private void SetupPlayerControls(RaycastPlayer p) { _moveInputEvent.AddListener(p.OnMoveInput); }
void Start() { textScript = GetComponentInChildren <RaycastPlayer>(); audio = GameObject.Find("Buttons for Light Puzzle").GetComponent <AudioSource>(); }
private void Awake() { RaycastPlayer = GetComponent <RaycastPlayer>(); }