public void Init(IntVector2 source, IntVector2 destination, OnSpecialEffectEndCallback onEnd) { _onEnd = onEnd; _target = destination; _timer = 0; Awake = true; }
public void Init(IntVector2 source, IntVector2 destination, Color projectileColor, OnSpecialEffectEndCallback onEnd) { _onEnd = onEnd; path = IntVector2.LineBetweenPoints(source, destination); _currentLocation = 0; _projectileColor = projectileColor; Awake = true; }
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; }
public SpecialEffect(string objectID, int instanceID) : base(objectID, instanceID) { Awake = false; _onEnd = null; }