Ejemplo n.º 1
0
 public void Init(IntVector2 source, IntVector2 destination, OnSpecialEffectEndCallback onEnd)
 {
     _onEnd  = onEnd;
     _target = destination;
     _timer  = 0;
     Awake   = true;
 }
Ejemplo n.º 2
0
 public void Init(IntVector2 source, IntVector2 destination, Color projectileColor, OnSpecialEffectEndCallback onEnd)
 {
     _onEnd           = onEnd;
     path             = IntVector2.LineBetweenPoints(source, destination);
     _currentLocation = 0;
     _projectileColor = projectileColor;
     Awake            = true;
 }
Ejemplo n.º 3
0
 public void Init(Color color, IntVector2 center, int maxRadius, List <IntVector2> affectedTiles, OnSpecialEffectEndCallback onEnd)
 {
     this.color     = color;
     _onEnd         = onEnd;
     _affectedTiles = affectedTiles;
     _center        = center;
     _maxRadius     = maxRadius;
     _timer         = 0;
     _radiusStepIn  = 0;
     _radiusStepOut = 0;
     Awake          = true;
 }
Ejemplo n.º 4
0
 public SpecialEffect(string objectID, int instanceID)
     : base(objectID, instanceID)
 {
     Awake  = false;
     _onEnd = null;
 }