コード例 #1
0
        void Awake()
        {
            player = GetComponent <EventPlayer>();
            player.AddParameter(new CustomParameter("DamageAngle", 0.0f));
            player.AddParameter(new CustomParameter("Severity", 0));

            // player.AddParameter(new CustomParameter("ToRight", false));
            player.AddParameter(new CustomParameter("Health", 0.0f));
        }
コード例 #2
0
        void Awake()
        {
            eventPlayer = GetComponent <EventPlayer>();

            eventPlayer.AddParameter(new CustomParameter("Agitated", () => agitated));

            movementController = GetComponent <MovementController>();
            movementController.AddChangeLoopStateValueCheck(() => agitated, "agitated");
        }