public virtual void Update() { if (isDead) { if (!isScaled) { //Timing.RunCoroutine((_ChangeScale(this.spriteTr, this.scaleRate, this.minOrMaxScale))); ChangeScale(this.spriteTr, this.spriteRend, this.scaleRate, this.minOrMaxScale); } } else { if (playerTr.position.y >= mainTransform.position.y && !isPointAdded && !mainTransform.CompareTag("Coin")) { values.AddPoints(1); isPointAdded = true; } } }