Esempio n. 1
0
    // ------------------------------------------------------------------------
    // ------------------------------------------------------------------------
    private void submitButtonClicked()
    {
        GBL_Interface.SendTestStatementStarted();
        GBL_Interface.SendTestStatementCompleted();

        this.statementText.text = "See the logs for your statement!";
    }
Esempio n. 2
0
 void OnTriggerEnter2D(Collider2D other)
 {
     if (other.tag == "Player" && !gotFlashlight)
     {
         gotFlashlight = true;
         audioSourcePickup.PlayOneShot(pickupSound, 0.7f);
         GBL_Interface.SendFlashlightPick();
         StartCoroutine(FLPickup(other));
     }
 }
Esempio n. 3
0
 public void Open()
 {
     if (alreadyPlayed == false)
     {
         anim.SetBool("LRDoorOpen", true);
         blocker.isTrigger = true;
         audioDoor.PlayOneShot(openCreak, 0.7f);
         alreadyPlayed = true;
         GBL_Interface.SendNpcDaughter();
         GBL_Interface.SendUnplug();
         GBL_Interface.SendDoorUnlock();
         GBL_Interface.SendUnplugDone();
     }
 }
Esempio n. 4
0
    public void OnTimerButtonPressed()
    {
        _running = !_running;

        if (_running)
        {
            ElapsedTime = 0f;
            GBLXAPI.Timers.ResetSlot(1);

            _timerButtonText.text = "Stop";

            GBL_Interface.SendTimerStarted();
        }
        else
        {
            _timerButtonText.text = "Start";

            GBL_Interface.SendTimerStopped();
        }
    }
Esempio n. 5
0
 // Use this for initialization
 void Start()
 {
     GBL_Interface.SendFlashlightPick();
 }
Esempio n. 6
0
 public void Die()
 {
     Instantiate(deathEffect, transform.position, Quaternion.identity);
     Destroy(gameObject);
     GBL_Interface.SendKilled();
 }
Esempio n. 7
0
 public static void KillPlayer(Player player)
 {
     Destroy(player.gameObject);
     GBL_Interface.SendDied();
     gm.StartCoroutine(gm.RespawnPlayer());
 }
Esempio n. 8
0
    // ------------------------------------------------------------------------
    // ------------------------------------------------------------------------
    private void SubmitButtonClicked()
    {
        GBL_Interface.SendContextStatement();

        statementText.text = "See the logs for your statement!";
    }