public void ProgressingTurn() { print("ProgressingTurn"); int t = nowTurnDamage + nowTurnEnemyDef; if (t < 0) { DamagingEnemyHP(t); } t = nowTurnEnemyDamage + nowTurnDef; if (t < 0) { DamagingHP(t); } if (nowTurnEnemyHeal > 0) { HealEnemyHP(nowTurnEnemyHeal); } if (nowTurnHeal > 0) { HealHP(nowTurnHeal); } isTurnEnemyCheck = false; isTurnPlayerCheck = false; SetPlayerHPText(NowHP); SetEnemyHPText(EnemyHP); TheManager.Send("InitOnlyTurn", TheManager._PuzzleManNum); InitTurn(); }
public void SendStartSignal() { print("SendStartSignal"); TheManager.Send("Init", TheManager._PuzzleManNum); TheManager.Send("Init", TheManager._UserManNum); TheManager.Send("GameInit", TheManager._UIManNum); }
public void ReceiveEnemyTurnValue(int hp, int def) { print("ReceiveEnemyTurnValue" + hp + "/" + def); TheManager.Send("ReceiveTurnValue", TheManager._UserManNum, new List <int> { hp, def }, null, null, new List <bool> { false }); }
public void SendMyPlayerVariation(int hp, int defence, bool player) { TheManager.Send("ReceiveEnemyTurnValueRPC", TheManager._NetworkManNum, new List <int> { hp, defence }); TheManager.Send("ReceiveTurnValue", TheManager._UserManNum, new List <int> { hp, defence }, null, null, new List <bool> { player }); }
public override void OnJoinedRoom() { print("join room finish"); print("now Player : " + PhotonNetwork.CurrentRoom.PlayerCount); TheManager.Send("ToggleConnectButton", TheManager._UIManNum, null, null, null, new List <bool> { false }); if (PhotonNetwork.CurrentRoom.PlayerCount.Equals(2)) { SendStartSignal(); } }
public void SetThisTurnHealingText(int num) { TheManager.Send("SetThisTurnHealingText", TheManager._UIManNum, new List <int> { num }); }
public void SetEnemyHPText(int num) { TheManager.Send("SetEnemyHPText", TheManager._UIManNum, new List <int> { num }); }
public void SetTimeTextSet(int num) { TheManager.Send("SetTimeText", TheManager._UIManNum, new List <int> { num }); }