Пример #1
0
 void Awake()
 {
     _as = GetComponent <AudioSource> ();
     //Al iniciar la escena asignamos cada item con sus respectivos nombres y costos
     for (int i = 0; i < artStyles.Length; i++)
     {
         nameText [i].text = artStyles [i].name;
         costText [i].text = artStyles [i].cost.ToString();
     }
     showCoins  = GameObject.Find("TotalCoinsText").GetComponent <ShowCoins> ();
     iapManager = GetComponent <IAPManager> ();
 }
Пример #2
0
        static void Main(string[] args)
        {
            String CommandFolder       = BasePath + Path.DirectorySeparatorChar + TAG_COMMAND;
            String EchoerLogsFolder    = BasePath + Path.DirectorySeparatorChar + TAG_LOGS + Path.DirectorySeparatorChar + TAG_ECHOER;
            String ShowCoinsLogsFolder = BasePath + Path.DirectorySeparatorChar + TAG_LOGS + Path.DirectorySeparatorChar + Config.TAG_SHOWCOINS;

            Console.WriteLine(CommandFolder);
            Console.WriteLine(EchoerLogsFolder);

            Directory.CreateDirectory(CommandFolder);
            Directory.CreateDirectory(EchoerLogsFolder);

            FolderManager.FolderManager.CreateDirectories();

            //Console.Write("Created Directories. Press enter to exit");
            // Echoer echoer = new Echoer(CommandFolder);
            //echoer.
            ShowCoins showCoins = new ShowCoins(CommandFolder);

            showCoins.showCoins();
            Console.WriteLine("Watching folder " + CommandFolder + ".\nLogs folder- " + FolderManager.FolderManager.ShowCoinsLogsFolder + "\n.Bank Folder location- " + FolderManager.FolderManager.BankFolder);
            Console.ReadLine();
        }