Hello ![]()
I would like to increase the players size constantly whenever they are touching a specific object. I can get the player to shrink but not grow . the player only grows every time i touch the object again.
this is my code for the shrink
void ShrinkBall()
{
transform.localScale -= new Vector3(0.1f, 0.1f, 0.1f);
print (“Shrink”);
}
this is my code to grow
void GrowBall()
{
transform.localScale += new Vector3(0.1f, 0.1f, 0.1f);
print (“Grow”);
}
note sure what the problem is.
thanks