Пример #1
0
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();
            Navmesh2Obstacle script = target as Navmesh2Obstacle;

            if (GUILayout.Button("Do Mesh 2 Obstacle"))
            {
                ScriptCommand cmd = ScriptCommand.Create((int)FrameWorkCmdDefine.DO_MESH_2_OBS);
                cmd.CallParams.WriteObject(script);
                cmd.ExcuteAndRelease();
            }

            if (GUILayout.Button("Add to rvo"))
            {
                ScriptCommand cmd = ScriptCommand.Create((int)FrameWorkCmdDefine.DO_ADD_2_RVO);
                cmd.CallParams.WriteObject(script);
                cmd.ExcuteAndRelease();
            }
        }
Пример #2
0
        static void DoAddRvo(AbstractParams p)
        {
            Navmesh2Obstacle script = p.ReadObject() as Navmesh2Obstacle;

            script.Add2Rvo();
        }
Пример #3
0
        static void DoMesh2Obs(AbstractParams p)
        {
            Navmesh2Obstacle script = p.ReadObject() as Navmesh2Obstacle;

            script.Mesh2Obstacle();
        }