Esempio n. 1
0
 private void Attack(UserToken token,int value)
 {
     AttackDTO atk = new AttackDTO();
     atk.UserID = GetUserId(token);
     atk.TargetID = value;
     Brocast(FightProtocol.ATTACK_BRO,atk);
 }
Esempio n. 2
0
 private void Attack(AttackDTO atk)
 {
     PlayerCtr obj = models[atk.UserID];
     PlayerCtr target = models[atk.TargetID];
     obj.Attack(new Transform[] { target.transform });
 }