void RevealpH(CharacterMechanics mech, ref Player player) { if (!mech.IspHrevealed()) { //Decrese the pH count of the player mech.RevealpH(true); player.DecrementpHUse(); } }
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); }
public GameObject pp2, pse2, jstk;//панели паузы и джостик void Start() { script2 = c.GetComponent <CharacterMechanics>(); coordFall = b.GetComponent <Transform>(); }
public void DeregistrationActiveUnits(CharacterMechanics unit) { active_units.Remove(unit); }
public void Registration(CharacterMechanics unit) { active_units.Add(unit); }