void Start() { servCon = FindObjectOfType <ServerContacts>(); }
public void WantsAttack(ServerContacts serv) { recAt = new ReciveAttack(serv.ReciveAtcReq); phList.peer.OpCustom(2, new Dictionary <byte, object>(), true); Debug.Log("Send attack request"); }
void Start() { cam = GetComponent <Camera>(); servCon = FindObjectOfType <ServerContacts>(); }
//Отправка запроса на инициализацию боя public void FightStarting(ServerContacts serv) { ret = new ReciveInic(serv.Inicil); phList.peer.OpCustom(1, new Dictionary <byte, object>(), true); Debug.Log("Send inic recuest"); }