Beispiel #1
0
    public void CloseBookText()
    {
        GameObject    raycast = GameObject.FindWithTag("Raycast");
        RaycastPlayer script  = raycast.GetComponent <RaycastPlayer>();

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