// Exit public void Exit() { // Remove singleton if (Singleton == this) { Singleton = null; } // Destroy sprite }
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Initialisation // Init public void Init() { // Set singleton if (Singleton == null) { Singleton = this; } else { IO.Debug.LogError("Bulletdata singleton was not null"); } // Temp /// Create Transform transform = new Physics.Transform(); /// Create sprite bulletSprite = new Sprite(transform); }