void MakeInstance() { if (instance == null) { instance = this; } }
public void Initialize() { position = new Position(); collider = new BallCollider(); position.SetPosition(34, 10); xVelocity = 1; yVelocity = 1; GameMap.GetInstance.SetObjectInMap(2, 10, MapInfo.BALL); }