コード例 #1
0
        public HistoryPickUp(string pHistoryImageFileName, string filename, int cols, int rows, int frames = -1, bool keepInCache = false,
                             bool addCollider = true) : base(filename, cols, rows, frames, keepInCache, addCollider)
        {
            _historyImageFileName = pHistoryImageFileName;
            _trigger = new TriggerBehavior(this);

            DrawableTweener.Blink(this, 1, 0.5f, 600);
        }
コード例 #2
0
        public OilPickUp(int newOilType, string poilImageFileName, string filename, int cols, int rows, int frames = -1, bool keepInCache = false,
                         bool addCollider = true) : base(filename, cols, rows, frames, keepInCache, addCollider)
        {
            _oilImageFileName = poilImageFileName;

            DrawableTweener.Blink(this, 1, 0.5f, 600);

            max = 100;

            _oilType = newOilType;


            //RandomizeSpawn(_oilType);
        }
コード例 #3
0
 public void Blink()
 {
     DrawableTweener.Blink(this, 1, 0.5f, Settings.Default_AlphaTween_Duration);
 }