public override void Init(PawnBase owner, Vector2 pos, Vector2 fwd) { RefreshModel("Skill04Model"); base.Init(owner, pos, fwd); PlayAnimation(0, "skill04", false, OnComplete); MessageManager.Inst.SendClearEnemy(); }
public override void Init(PawnBase owner, Vector2 pos, Vector2 fwd) { RefreshModel("Skill01Model"); RefreshCollider(cRadius); collider.isTrigger = true; base.Init(owner, pos, fwd); }
public void ReceiveDamagePawn(GamePlayer gamePlayer, params object[] objs) { int id = (int)objs[0]; float damage = (float)objs[1]; PawnBase pawn = EntityManager.Inst.GetEntity <PawnBase>(id); if (pawn != null) { pawn.OnDamage(damage); } }
public virtual void Init(PawnBase owner, Vector2 pos, Vector2 fwd) { this.owner = owner; Init(pos, fwd); }
public void CreateSkillEntity <T>(PawnBase owner, Vector2 pos, Vector2 fwd) where T : SkillEntityBase { SkillEntityBase entity = EntityBase.FactoryCreate <T>(); entity.Init(owner, pos, fwd); }
public override void Init(PawnBase owner, Vector2 pos, Vector2 fwd) { RefreshModel("Skill03Model"); base.Init(owner, pos, fwd); PlayAnimation(0, "skill03", false, OnComplete); }