// Use this for initialization void Start() { if (DrawDebugBoxes) { _boxDrawing = new BoxDrawer(gameObject); } }
private void Awake() { World = new World(new Vector2(0, -10)); // Define the gravity vector. DebugDrawer = DebugDrawer.GetDrawer(); WorldDrawer = new BoxDrawer { Drawer = DebugDrawer }; World.SetDebugDrawer(WorldDrawer); Logger.SetLogger(new UnityLogger()); }
// Use this for initialization void Start() { if (DrawDebugBoxes) { /** * Tracé des boîtes de debug **/ _boxDrawing = new BoxDrawer(gameObject); } if (Config.Instance.FetchDoubleFromConfig("distanceBetweenObjects")) { distanceFromOtherObject = (float)Config.Instance.GetDouble("distanceBetweenObjects"); } }
public void Draw(Canvas c) { BoxDrawer bd = new BoxDrawer(c); bd.Draw(this); }