Hello,
i want to scale my object after the if statement is true. I have it working but the problem is that the trigger that is attached to the object scales too. I dont want that. what can i do?
Here is a piece of my code. I didnt want to post the whole one because there is alot of unrelevent coding in it too. Hope you can help.
if (health <= 80){
RndRot = (Random.Range(45,300));
transform.rotation = Quaternion.AngleAxis(RndRot, Vector3.up);
transform.localScale = Vector3(0.8,0.8,0.8);
}