Exemple #1
0
    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();
    }
Exemple #2
0
 public void SendStartSignal()
 {
     print("SendStartSignal");
     TheManager.Send("Init", TheManager._PuzzleManNum);
     TheManager.Send("Init", TheManager._UserManNum);
     TheManager.Send("GameInit", TheManager._UIManNum);
 }
Exemple #3
0
 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
     });
 }
Exemple #4
0
 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
     });
 }
Exemple #5
0
    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();
        }
    }
Exemple #6
0
 public void SetThisTurnHealingText(int num)
 {
     TheManager.Send("SetThisTurnHealingText", TheManager._UIManNum, new List <int> {
         num
     });
 }
Exemple #7
0
 public void SetEnemyHPText(int num)
 {
     TheManager.Send("SetEnemyHPText", TheManager._UIManNum, new List <int> {
         num
     });
 }
Exemple #8
0
 public void SetTimeTextSet(int num)
 {
     TheManager.Send("SetTimeText", TheManager._UIManNum, new List <int> {
         num
     });
 }