示例#1
0
 public PlayerParams(int id, string name, float health, Vector3 position, Quaternion rotation, ModelHandler.characters character, ModelHandler.weapons weapon)
 {
     this.id         = id;
     this.name       = name;
     this.health     = health;
     this.position   = position;
     this.rotation   = rotation;
     this.character  = character;
     this.weapon     = weapon;
     this.isShooting = false;
 }
示例#2
0
 public void SetFromPlayerParams(PlayerParams pp)
 {
     id         = pp.id;
     name       = pp.name;
     playerName = pp.name;
     health     = pp.health;
     //gameObject.transform.position = pp.position;
     print("here2 " + pp.weapon + " " + weapon);
     if (weapon != pp.weapon)
     {
         weapon = pp.weapon; weaponComponent = wh.InstantiateWeapon(weapon);
     }
     if (character != pp.character)
     {
         wh.InstantiateCharacter(pp.character); character = pp.character;
     }
     print("here3");
 }
示例#3
0
 public void setCharacter(ModelHandler.characters character)
 {
     this.character = character;
 }