Exemple #1
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++;
    }
Exemple #2
0
    //表情
    private void FacialExpression()
    {
        var satisfyVal = satisfy.SatisfyValue;

        if (satisfyVal >= 50)
        {
            face = CharaFaceState.Normal;
        }
        if (satisfyVal >= 75)
        {
            face = CharaFaceState.Smile;
        }
        if (satisfyVal >= 100)
        {
            face = CharaFaceState.Cat;
        }

        if (state.CheckBit(State.Burn))
        {
            face = CharaFaceState.Anger;
        }
    }