// ------------------------------------------------------------------------ // ------------------------------------------------------------------------ private void submitButtonClicked() { GBL_Interface.SendTestStatementStarted(); GBL_Interface.SendTestStatementCompleted(); this.statementText.text = "See the logs for your statement!"; }
void OnTriggerEnter2D(Collider2D other) { if (other.tag == "Player" && !gotFlashlight) { gotFlashlight = true; audioSourcePickup.PlayOneShot(pickupSound, 0.7f); GBL_Interface.SendFlashlightPick(); StartCoroutine(FLPickup(other)); } }
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(); } }
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(); } }
// Use this for initialization void Start() { GBL_Interface.SendFlashlightPick(); }
public void Die() { Instantiate(deathEffect, transform.position, Quaternion.identity); Destroy(gameObject); GBL_Interface.SendKilled(); }
public static void KillPlayer(Player player) { Destroy(player.gameObject); GBL_Interface.SendDied(); gm.StartCoroutine(gm.RespawnPlayer()); }
// ------------------------------------------------------------------------ // ------------------------------------------------------------------------ private void SubmitButtonClicked() { GBL_Interface.SendContextStatement(); statementText.text = "See the logs for your statement!"; }