Exemplo n.º 1
0
 // Use this for initialization
 void Awake()
 {
     TextSTR.text        = PointSTR.ToString();
     TextINT.text        = PointINT.ToString();
     TextCHA.text        = PointCHA.ToString();
     TextLCK.text        = PointLCK.ToString();
     TextAllocation.text = PointAlokasi.ToString();
 }
Exemplo n.º 2
0
 public void LckPlus()
 {
     if (PointAlokasi > 0)
     {
         if (PointLCK < MaxLCK)
         {
             PointLCK           += 1;
             PointAlokasi       -= 1;
             TextLCK.text        = PointLCK.ToString();
             TextAllocation.text = PointAlokasi.ToString();
         }
     }
 }
Exemplo n.º 3
0
 public void LckMinus()
 {
     if (PointAlokasi < MaxPointAlokasi)
     {
         if (PointLCK > 1)
         {
             PointLCK           -= 1;
             PointAlokasi       += 1;
             TextLCK.text        = PointLCK.ToString();
             TextAllocation.text = PointAlokasi.ToString();
         }
     }
 }