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

        script.CloseBookText();
        if (script.GetTerminalEnabled())
        {
            script.CloseTerminalText();
        }
    }
예제 #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>();
 }
예제 #4
0
 private void Awake()
 {
     RaycastPlayer = GetComponent <RaycastPlayer>();
 }