void Update() { if (gameObject.transform.localScale.x > 1.3) { _animator.SetTrigger("DangerTrigger"); } if (gameObject.transform.localScale.x > 1.8) { AddScore.DecrementScore(); Destroy(gameObject); } gameObject.transform.localScale *= 1.001f; }
void Update() { if (gameObject.transform.localScale.x > 1.3) { _animator.SetTrigger("DangerTrigger"); } if (gameObject.transform.localScale.x > 1.8) { AddScore.DecrementScore(); Destroy(gameObject); } gameObject.transform.localScale *= 1.001f; }