예제 #1
0
 public override bool Init()
 {
     // Write here code to be called on world initialization: initialize resources for your world scene during the world start.
     CurrentWorld = this;
     Console.Run("show_messages 1");
     return(true);
 }
예제 #2
0
    // Init all commands.
    public LibraryConsoleCommands()
    {
        Unigine.Console.AddCommand(
            "get_object_forward",
            "Command for ray casting before camera and Log object",
            GetObjectForward);
        Interpreter.AddExternFunction("get_object_forward2", SimpleObjectForward, "");

        Console.AddCommand("jump_sp",
                           "Jump to spawn point, by default jump to last, or call `jump_sp 2` it will second jump point",
                           JumpToSpawnPoint);
    }