Ejemplo n.º 1
0
 // Use this for initialization
 protected override void Start()
 {
     base.Start();
     InitializeGame(DIFFICULTY.EASY);
     PC_EventManager.StartListening(PC_EventSetup.SlotMachine.CAN_INSERT, ResetLines);
     PC_EventManager.StartListening(PC_EventSetup.GAME_LOADED, GameLoaded);
 }
        // Use this for initialization
        void Start()
        {
            if (!m_animator)
            {
                m_animator = GetComponent <Animator>();
            }

            PC_EventManager.StartListening(PC_EventSetup.SlotMachine.LOSE, Lose);
            PC_EventManager.StartListening <string>(PC_EventSetup.SlotMachine.PLAY_ANIMATION, PlayAnimation);
        }
Ejemplo n.º 3
0
        // Use this for initialization
        void Start()
        {
            m_gameData = new PC_SaveData();
            m_path     = System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments) + "\\" + m_gameName;

            if (!Directory.Exists(m_path))
            {
                Directory.CreateDirectory(m_path);
                Debug.Log("Creating Path in " + m_path);
            }

            m_path += "\\" + PC_SaveSetup.SAVE_FILE;

            PC_EventManager.StartListening(PC_EventSetup.SAVE_GAME, SaveGame);
            PC_EventManager.StartListening(PC_EventSetup.LOAD_GAME, LoadGame);
        }