Beispiel #1
0
 void RevealpH(CharacterMechanics mech, ref Player player)
 {
     if (!mech.IspHrevealed())
     {
         //Decrese the pH count of the player
         mech.RevealpH(true);
         player.DecrementpHUse();
     }
 }
Beispiel #2
0
        void ChangepH(Character c)
        {
            float resultantpH        = 0;
            CharacterMechanics chMec = c.GetComponent <CharacterMechanics>();

            //TODO: Add the volume calculation here
            if (chMec != null)
            {
                resultantpH = (playerMechanics.phValue + chMec.getpH()) / 2;
            }

            playerMechanics.SetpH(resultantpH);
        }
Beispiel #3
0
    public GameObject pp2, pse2, jstk;//панели паузы и джостик

    void Start()
    {
        script2   = c.GetComponent <CharacterMechanics>();
        coordFall = b.GetComponent <Transform>();
    }
Beispiel #4
0
 public void DeregistrationActiveUnits(CharacterMechanics unit)
 {
     active_units.Remove(unit);
 }
Beispiel #5
0
 public void Registration(CharacterMechanics unit)
 {
     active_units.Add(unit);
 }