示例#1
0
        public override void OnUpdate()
        {
            GameObject go = Fsm.GetOwnerDefaultTarget(gameObject);

            if (go == null)
            {
                return;
            }

            if (go != previousGo)
            {
                humanoid   = go.GetComponent <HumanoidControl>();
                previousGo = go;
            }

            if (humanoid != null)
            {
                humanoid.Move(moveVector.Value);
            }
        }