예제 #1
0
    // Use this for initialization
    public void StartGame(Camera cam)
    {
        //Set our starting values
        _isPlaying           = true;
        _curHappiness        = startHappiness;
        _curDesire           = Random.Range(0f, 1f);
        _dayCount            = 0;
        _curWeek             = 1;
        _craigApprovalRating = craigStartingApproval;
        _dadApprovalRating   = dadStartingApproval;

        //Start everything
        _isHappy = startHappiness > happinessThreshold; //Set isHappy based on our starting happiness and happiness threshold
        charCont.CharStart(_isHappy, cam);
        intMan.HideWarningInterface();
        intMan.HideBakingNotice();
        intMan.UpdateInterface(_curDesire, ApprovalLevelFromFloat(_dadApprovalRating), ApprovalLevelFromFloat(_craigApprovalRating), _curHappiness, _curWeek);
        StartCoroutine(TimeTick());
    }