Exemple #1
0
        internal Chat() : base("Chat", GUILayers.Chat)
        {
            Instance = this;
            messages = new List <string>();

            commandHandler = new ChatCommandsHandler
            {
                CommandPrefix = "/"
            };
            commandHandler.WithNetworkingPeer(PhotonNetwork.networkingPeer).WithGameManager(FengGameManagerMKII.FGM);
            commandHandler.RegisterModule <AoTTG.Anarchy.Commands.NewCommandHandler>();
        }
Exemple #2
0
    void Start()
    {
        MainCam            = GameObject.Find("MainCamera");
        KeyBindScript      = GameObject.Find("KeyBindingsManager");
        PartyPerson        = GameObject.Find("PartyPerson");
        partyPeopleSpawner = GameObject.Find("PartyPeopleSpawner");

        // YMV: Setting the proper ChatCommandHandler so we can use the one in the Unity Inspector
        chatCmdsHndlr = GetComponent <ChatCommandsHandler>();
        // YMV: Adding the main admin to the admins list just in case this hasn't been set in the Inspector
        chatCmdsHndlr.Admins("add", username);

        //followPeople = PartyPerson.GetComponent<FollowPeople>();

        Connect();
        //StateConnection();
    }