Ejemplo n.º 1
0
 public override void Clear()
 {
     ObjectsPool.GetInstance().RestorePrefabToPool(_prefabName, _bullet);
     _bullet        = null;
     _trans         = null;
     _moveToIntFunc = null;
     base.Clear();
 }
Ejemplo n.º 2
0
 public override void MoveTo(float endX, float endY, int duration, InterpolationMode intMode)
 {
     _moveFromPos          = _curPos;
     _moveToPos            = new Vector2(endX, endY);
     _moveStraightTime     = 0;
     _moveStraightDuration = duration;
     _moveToIntFunc        = MathUtil.GetInterpolationVec2Func(intMode);
     _isMovingTowards      = false;
     _isMovingTo           = true;
 }