示例#1
0
    //init block
    public virtual void init(GameSystem sys)
    {
        _useType = USETYPE.MATCH3;
        _system  = sys;
        _sprite  = gameObject.GetComponent <SpriteRenderer>();

        _sprite.sprite = _normal;
    }
        public SelectElement(USETYPE type)
        {
            InitializeComponent();
            UseType = type;
            var color = new Color();

            color.A           = 255;
            color.R           = 255;
            color.G           = 255;
            color.B           = 255;
            GradientStopValue = new GradientStop(color, 1.0f);
        }