public void OneOnOne() { Debug.Log("###### TEST 1 ######"); SequenceAction demoFight = new SequenceAction(); Model actor, target; // Right-0 attack Left-0 actor = rightTeam[0]; target = leftTeam[0]; AnimeAction p1Attack = CreateAttackAction(actor, target, 0, true, CreateHitDamageAction(target)); // Left-0 attack Right-1 actor = leftTeam[0]; target = rightTeam[0]; AnimeAction p2Attack = CreateAttackAction(actor, target, 0, true, CreateHitDamageAction(target, effectPrefab[1])); demoFight.AddAction(p2Attack); demoFight.AddAction(p1Attack); actionManager.RunAction(demoFight); }
public void DamageText() { GameTextAction action = new GameTextAction(); action.text = "123456"; action.textPrefab = hitPrefab; action.textStyle = GameText.Style.Damage; actionManager.RunAction(action); }
public void AttackStyle0() { AttackAction attackAction = new AttackAction(); attackAction.actor = hero; attackAction.style = 0; attackAction.isMoving = true; attackAction.targetPostion = target.transform.position + new Vector3(1, 0, -2); attackAction.onHitAction = GetTargetHitDamageAction(); actionManager.RunAction(attackAction); }
public void Melee1() { AttackAction attackAction = CreateActorAttackAction(0, true, CreateTargetHitDamageAction()); actionManager.RunAction(attackAction); }
public void SimpleAnime() { SimpleAnimationAction action = new SimpleAnimationAction(); action.clip = animeClip; action.spawnPosition = new Vector3(0, 0, zOrderVfx); action.repeat = 3; action.destroySelf = false; actionManager.RunAction(action); }
public void PointEffect() { EffectAction effectAction = EffectAction.CreatePointEffect(effectPrefab, Vector3.zero); actionManager.RunAction(effectAction); }