Exemplo n.º 1
0
    public GameBody CreateGameBody(int coordx, int coordy)
    {
        GameObject obj  = new GameObject();
        GameBody   body = obj.AddComponent <GameBody> ();

        body.ChangeCoord(coordx, coordy);
        body.AddCeil(CreateCeil(), 0, 0);
        WorldManager.Instance.AddGameBodyToWorld(body);
        return(body);
    }