mattrdowney / planetaria

A Unity framework for Euclidean 2-sphere games (e.g. 2D virtual reality games) [quasi-MIT license]
Other
10 stars 2 forks source link

PlanetariaGameObject #94

Closed mattrdowney closed 6 years ago

mattrdowney commented 6 years ago

Static class for constructing GameObject-equivalent in Planetaria.

mattrdowney commented 6 years ago

.Create([non-Quaternion]), .Destroy()

mattrdowney commented 6 years ago

This function and #97 will have functionality to hide Planetaria internals.

PlanetariaGameObject will no longer be a static class, but instead a wrapper class for GameObjects.

Additionally, because this is a non-static class (that allows instantiation) I can use new PlanetariaGameObject instead of PlanetariaGameObject.Create(), which is a better API.

mattrdowney commented 6 years ago

This should also extend MonoBehaviour, and implement one property: gameObject { return this.gameObject; }

mattrdowney commented 6 years ago

Fixed as of ec9f70746d267ac351ad85594acd828cbaaec9b2