Example #1
0
 public Timer(int _sec)
 {
     _sec    = Mathf.Clamp(_sec, 0, 3600);
     minute  = initMinute = _sec / 60;
     seconds = initSeconds = _sec % 60;
     flag.FoldALLBit();
 }
 public SatisfactionLevel()
 {
     satisfyValue = MinSatisfyValue;
     state.FoldALLBit();
     delay.Start();
     delay.EnabledLoop();
 }
Example #3
0
 // Start is called before the first frame update
 void Start()
 {
     flg.FoldALLBit();
     themo     = GameObject.Find("Themometer_main");
     themoCtrl = themo.GetComponent <ThemometerController>();
     animator  = GetComponent <Animator>();
     animator.SetBool("FanFlag", false);
 }
Example #4
0
    // Start is called before the first frame update
    void Start()
    {
        state.FoldALLBit();
        state.AddBit(State.Normal);

        face = CharaFaceState.Normal;

        //このオブジェクトのSprteRender取得
        spriteRenderer = gameObject.GetComponent <SpriteRenderer>();

        var obj = GameObject.Find("Themometer_main");

        themoCtrl = obj.GetComponent <ThemometerController>();

        obj      = GameObject.Find("ThemoRangeGauge");
        themoMan = obj.GetComponent <ThemoManager>();

        obj         = GameObject.Find("CustomerManager");
        customerFac = obj.GetComponent <SpawnFactory>();

        animator = GetComponent <Animator>();
        animator.SetBool("Grab", false);
        animator.SetBool("Walk", false);


        //揚げ時間
        friedTimer = new Timer(BurnFriedTime);
        friedTimer.Start();


        //リアクション
        reactionState = ReactionState.None;
        reactionTimer = new Timer(6);
        reactionDisp  = new Vector3(0.5f, 0.5f, PosZ - 0.01f);;
        reactionTimer.EnabledLoop();
        reactionTimer.Start();

        GameDirector.totalCustomerNum++;
    }