Exemple #1
0
    //incoplete
    public void PassValue(Activity activity)
    {
        name = activity.name;

        animationTrigger = activity.animationTrigger;
        trannsitionDelay = activity.trannsitionDelay;

        energyPerHour = activity.energyPerHour;

        cost = activity.cost;

        limitPerDay = activity.limitPerDay;

        isDutrationAjustable = activity.isDutrationAjustable;
        duration.SetValue(activity.duration);

        isIncreaseStress        = activity.isIncreaseStress;
        increasedStressModifier = activity.increasedStressModifier;

        isDecreaseStress        = activity.isDecreaseStress;
        decreasedStressModifier = activity.decreasedStressModifier;

        isChangeOtherStat  = activity.isChangeOtherStat;
        isEffectedByStress = activity.isEffectedByStress;

        changedStat         = activity.changedStat;
        changedStatModifier = activity.changedStatModifier;

        interest = activity.interest;
        ability  = activity.ability;
    }
        public BoolContainer CheckLoginStatus()
        {
            BoolContainer loginStatus = new BoolContainer();

            loginStatus.result = loginSystem.loginStatus;
            return(loginStatus);
        }
Exemple #3
0
 public void CheckCondition(BoolContainer condition)
 {
     if (condition.Value)
     {
         OnTrue.Invoke();
     }
     else
     {
         OnFalse.Invoke();
     }
 }
Exemple #4
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();

        GUI.enabled = Application.isPlaying;

        BoolContainer m_Target = target as BoolContainer;

        if (GUILayout.Button("Update Changes"))
        {
            m_Target.OnValueChanged.Invoke(m_Target);
        }
    }
Exemple #5
0
 public void UpdateChanges(BoolContainer container)
 {
     Animator.SetBool(parameterHash, container.Value);
 }
Exemple #6
0
 public void setEnable(BoolContainer intVariable)
 {
     isEnable = InputGroup.Value;
 }
Exemple #7
0
 public void SetFullScreen(BoolContainer isFullScreen)
 {
     Screen.fullScreen = isFullScreen.Value;
 }
Exemple #8
0
 public void RemoveInterest(BoolContainer interest)
 {
     this.interest.Remove(interest);
 }
Exemple #9
0
 public void SetInterest(BoolContainer interest)
 {
     this.interest.Add(interest);
 }