Example #1
0
 /// <summary>
 /// Use to initialize bullet direction and position properties. For example, after being instantiated.
 /// </summary>
 /// <param name="direction"></param>
 /// <param name="position"></param>
 public void Initialize(Vector2 direction, Vector2 position)
 {
     motor.ChangeDirection(direction);
     transform.position = position;
 }