void Update() { if (GameManager.o.pause) { return; } if (open) { if (openTimer > 0) { animator.Play("Opening"); openTimer -= Time.deltaTime; if (openTimer <= 0) { item.inChest = false; item.transform.position = transform.position; } } else { animator.Play("Open"); } } else { animator.Play("Closed"); } physics.Move(Vector2.zero); }
// Update is called once per frame protected override void Update() { base.Update(); if (GameManager.o.pause) { return; } physics.Move(Vector2.zero); }
// Update is called once per frame protected virtual void Update() { if (GameManager.o.pause) { return; } if (!held && !inChest) { physics.Move(Vector2.zero); } }