Question by
TitaNico123 · Jul 31, 2017 at 05:04 AM ·
scripting problemmovementgameobjectvector3vector2
New Vector2 won't take effect when called from another script in the same GameObject.
Hey, I am making a Pong style game in which I have a 3 second countdown timer. I have 2 scripts, one that dictates the bounce when it hit's a wall, and one that serves as a timer. Once the 3 seconds are up, I try to give the sprite these two scripts are attached to a new velocity using vector2. I don't get any errors in console but the ball does not move after the 3 seconds. The timer works fine whoever.
This is what I declare in the timer script:
This is my timer code:
In my second script I have new Vector2 movements that work fine. My problem is that Move(); is not executing or at least not moving the ball. Thanks so much in advance.
Comment