private void OnTriggerStay(Collider other) { if (player.OnClickInteraction()) { animTrigger.speed = 1; anim.speed = 1; } }
private void OnTriggerStay(Collider other) { if (player.OnClickInteraction()) { anim.speed = 1; StartCoroutine(doRotation()); } else { anim.speed = 0; } }
private void OnTriggerStay(Collider other) { if (player.OnClickInteraction()) { if (!isReady) { addCube(); } else if (isReady) { openGate(); gameObject.GetComponent <Collider>().enabled = false; } } }