示例#1
0
        // Exit
        public void Exit()
        {
            // Remove singleton
            if (Singleton == this)
            {
                Singleton = null;
            }

            // Destroy sprite
        }
示例#2
0
        ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        // 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);
        }