Esempio n. 1
0
        internal override void Create(string name)
        {
            Name              = Project.Resources.GenerateValidName(name ?? "sprite");
            BboxMode          = GMSpriteBboxMode.Automatic;
            CollisionKind     = GMSpriteColKind.Rectangle;
            SeparateMasks     = false;
            Type              = GMSpriteType.Bitmap;
            PremultiplyAlpha  = false;
            EdgeFiltering     = false;
            OriginX           = 0;
            OriginY           = 0;
            CollisonTolerance = 0;
            SwfPrecision      = 2.525f;
            BboxLeft          = 0;
            BboxRight         = 0;
            BboxTop           = 0;
            BboxBottom        = 0;
            HorizontalTile    = false;
            VerticalTile      = false;
            For3D             = false;
            OriginLocked      = false;
            TextureGroup      = Project.Resources.Get <GMMainOptions>().Graphics.DefaultTextureGroup;
            Width             = 64;
            Height            = 64;
            GridX             = 0;
            GridY             = 0;
            PlaybackSpeed     = 15;
            PlaybackSpeedType = GMAnimationSpeedType.FramesPerSecond;
            SwatchColors      = new List <Color>();

            Layers.Create();

            AddResourceToFolder("GMSprite");
        }
Esempio n. 2
0
    // Use this for initialization
    void Start()
    {
        Layers.Create();

        Player.Create();

        gameObject.AddComponent <InputSystem> ();
    }