Beispiel #1
0
 public override void Initialize(Vector3 startPositionParam, ITarget targetParam, SpellData dataParam) {
     data = dataParam as IceBoltData;
     target = targetParam;
     transformBehaviour = new TargetDirectBehaviour(targetParam, bulletSpeed);
     transformBehaviour.Start(transform, startPositionParam, End);
 }
Beispiel #2
0
 public override void Initialize(Vector3 startPositionParam, ITarget targetParam, SpellData dataParam) {
     data = dataParam as MeteorData;
     target = targetParam;
     transformBehaviour = new TargetDirectBehaviour(targetParam, bulletSpeed);
     transformBehaviour.Start(transform, new Vector3(targetParam.GetTargetBehaviour().GetPosition().x, targetParam.GetTargetBehaviour().GetPosition().y+10, targetParam.GetTargetBehaviour().GetPosition().z), End);
 }
 public override void Initialize(Vector3 startPositionParam, ITarget targetParam, Action<ITarget> endCallback) {
     base.Initialize(startPositionParam, targetParam, endCallback);
     transformBehaviour = new TargetDirectBehaviour(targetParam, bulletSpeed);
     transformBehaviour.Start(transform, startPositionParam, End);
 }