예제 #1
0
 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();
 }
예제 #2
0
 public override void Init(PawnBase owner, Vector2 pos, Vector2 fwd)
 {
     RefreshModel("Skill01Model");
     RefreshCollider(cRadius);
     collider.isTrigger = true;
     base.Init(owner, pos, fwd);
 }
예제 #3
0
        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);
            }
        }
예제 #4
0
 public virtual void Init(PawnBase owner, Vector2 pos, Vector2 fwd)
 {
     this.owner = owner;
     Init(pos, fwd);
 }
예제 #5
0
        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);
 }