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