// Init void Start() { // setting initial state (must be Active) state = State.Active; // reference to die die = DieScript.instance(); // reference to board board = BoardScript.instance(); // reference to the game manager gm = GameManagerScript.instance(); // inital assigns // playerInfoText.text = "init"; cash = 1500; moveTime = 0.25f; timeInJail = 0; elapsedTime = int.MaxValue; }
//Return the propety's current rent (multiply by dice roll) public int GetRent() { return(DieScript.instance().GetPrevDieRoll() * multiplier[multIndex]); }