예제 #1
0
        protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
        {
            Vector3 v3 = env.Get <Vector3>(this.Vector3Key);

            float v = 0;

            switch (VType)
            {
            case VType.X:
                v = v3.x;
                break;

            case VType.Y:
                v = v3.y;
                break;

            case VType.Z:
                v = v3.z;
                break;
            }
            env.Add(this.V, v);
            return(true);
        }
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     env.Add(Output, new Vector3(X, Y, Z));
     return(true);
 }