Exemple #1
0
 public void Initialize(IAttackableTarget sourceParam, ITarget targetParam, SpellData data) {
     source = sourceParam;
     target = targetParam;
     baseData = data;
     InitializeData(data);
     InitView();
 }
Exemple #2
0
 public void Upgrade() {
     level++;
     if (spell == Spells.ICE_BOLT) {
         data = GameDataService.GetConfig().iceBoltLevelsData[level - 1];
     } else {
         data = GameDataService.GetConfig().meteorLevelsData[level - 1];
     }
 }
Exemple #3
0
 protected override void InitializeData(SpellData data) {
     iceBoltData = data as IceBoltData;
 }
Exemple #4
0
 public abstract void Initialize(Vector3 startPositionParam, ITarget targetParam, SpellData data);
Exemple #5
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);
 }
Exemple #6
0
 protected abstract void InitializeData(SpellData data);
Exemple #7
0
 protected override void InitializeData(SpellData data) {
     meteorData = data as MeteorData;
 }
Exemple #8
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);
 }