void Awake() { m_logger = new Logger(this); m_videoPlayer = GetComponentInChildren <VideoPlayer>(); m_videoPlayer.loopPointReached += m_videoPlayer_loopPointReached; m_videoPlayer.prepareCompleted += m_videoPlayer_prepareCompleted; m_videoPlayer.errorReceived += m_videoPlayer_errorReceived; //Set Audio Output to AudioSource m_videoPlayer.audioOutputMode = VideoAudioOutputMode.AudioSource; if (!AudioSource) { AudioSource = GetComponent <AudioSource>(); } if (PlaybackCompleted == null) { PlaybackCompleted = new UnityEvent(); } if (ClipLoaded == null) { ClipLoaded = new UnityEvent(); } }
public void Initialize() { if (IsInitialized) { return; } m_Logger = new Logger(this); PurchasableItems = new Dictionary <string, ScriptDirectoryItem>(); var builder = ConfigurationBuilder.Instance(StandardPurchasingModule.Instance()); var items = ScriptRunnerManager.Instance.GetScriptRunners().Where(item => !string.IsNullOrEmpty(item.ProductIdentifier)); foreach (var item in items) { if (PurchasableItems.ContainsKey(item.ProductIdentifier)) { m_Logger.Warning(string.Format("PurchaseManager Purchasable item ({0}) already registered.", item.ProductIdentifier)); continue; } m_Logger.Verbose(string.Format("PurchaseManager Purchasable item ({0}) registered.", item.ProductIdentifier)); PurchasableItems.Add(item.ProductIdentifier, item); builder.AddProduct(item.ProductIdentifier, ProductType.NonConsumable); } UnityPurchasing.Initialize(this, builder); m_Logger.Verbose(string.Format("PurchaseManager {0} initialized.", this.GetType())); }
protected void Awake() { m_logger = new Logger(this); g_instance = this; m_spawnedObjects = new SetDictionary <ARMarkerObject, VisualMarkerObject>(); m_trackingMarkerObjects = new SetDictionary <string, ARMarkerObject>(); m_trackingHold = new List <ARMarkerObject>(); m_activeResourceMedia = new SetDictionary <string, MarkerMedia>(); m_activeResourceAssets = new SetDictionary <string, MarkerAsset>(); m_activeResourceObjects = new Dictionary <string, ActiveObject>(); TrackingConditionMonitor = new ARMarkerTrackingConditionMonitor(); if (Activated == null) { Activated = new UnityEvent(); } if (Deactivated == null) { Deactivated = new UnityEvent(); } }
public PlayableContentHandler() { m_logger = new Logger(this); m_containers = new Dictionary <string, BatchContext>(); ScriptManager.Instance.ScriptsReset += ScriptManager_ScriptsReset; }
protected virtual void Awake() { m_playingPlayers = new HashSet <UnityAudioPlayer>(); m_actions = new List <Action>(); m_logger = new Logger(this); m_channelImpl = new UnityAudioPlayerChannelImpl(this); }
protected virtual void Awake() { m_logger = new Logger(this); m_screenQueue = new PlayableContentQueue(); m_narratorQueue = new PlayableContentQueue(); m_queues = new Dictionary <string, PlayableContentQueue>(); m_locativeAudioProcessor = new LocativeAudioContentProcessor(); }
protected override void Awake() { base.Awake(); m_logger = new Logger(this); m_runningProcessors = new Dictionary <string, ScriptProcessor>(); m_scriptFolders = new SetDictionary <string, string>(); }
protected override void Awake() { base.Awake(); m_isEditor = Application.isEditor; m_logger = new Logger(this); m_catalogLoadActions = new List <Action <Action> >(); m_preloadActions = new List <Action>(); }
protected override void Awake() { m_logger = new Logger(this); AppManager.Instance.Initialized += (sender, args) => { Initialize(); }; base.Awake(); }
protected virtual void Awake() { m_logger = new Logger(this); if (sInstance != null) { m_logger.Error("SingletonComponent.Awake: error " + name + " already initialized"); } sInstance = (T)this; }
public UnityAudioPlayer(UnityAudioPlayerChannel channel) { m_logger = new Logger(this); m_channel = channel; Pitch = 1f; Volume = 1f; Loop = false; Inst = g_inst++; }
protected override void Awake() { base.Awake(); m_logger = new Logger(this); m_tileInfos = new TileInfo[TileSpan, TileSpan]; m_currMinX = -1; m_currMinY = -1; }
protected override void Awake() { base.Awake(); m_logger = new Logger(this); UserSpaces = new List <SpaceInfoModel>(); if (!UseDynamicConfigLogin) { return; } }
public ManagedAudioPlayer(IAudioPlayer player, bool allowBackground) { m_logger = new Logger(this); AllowBackground = allowBackground; m_player = player; m_player.AudioEnded += M_player_AudioEnded; Platform.Instance.OnPauseAudio.AddListener(PauseAudio); Platform.Instance.OnResumeAudio.AddListener(ResumeAudio); }
public void Initialize() { m_logger = new Logger(this); m_spawnItemDriver = new LocationValuablesSpawnItemDriver(); m_spawnItemDriver.ItemsSpawned += m_spawnItemDriver_ItemsSpawned; m_spawnItemDriver.ItemsRemoved += m_spawnItemDriver_ItemsRemoved; foreach (var driver in m_drivers.Values) { driver.Initialize(); } }
public WorldObjectManager() { m_logger = new Logger(this); m_effectHandlers = new Dictionary <string, IWorldObjectEffectHandler>(); m_objectsByName = new Dictionary <string, WorldObjectBehaviour>(); m_worldObjects = new SetDictionary <string, WorldObjectBehaviour>(); m_pendingEffects = new ListDictionary <string, ActiveResourceContainer <WorldObjectEffectPlayer> >(); m_appliedEffects = new SetDictionary <string, AppliedEffect>(); m_effectHandlers["motive.unity.animation"] = new UnityAnimationEffectHandler(); m_effectHandlers["motive.3d.embeddedAnimation"] = new EmbeddedAnimationEffectHandler(); m_effectHandlers["motive.3d.scriptedAnimation"] = new ScriptedAnimationHandler(); m_effectHandlers["motive.3d.scriptedParticleEffect"] = new ScriptedParticleEffectHandler(); }
void Start() { m_logger = new Logger(this); MapView.TileDriver.RegisterRenderer(this); m_tileCountX = MapView.TileDriver.TileCountX; // +BoundaryTiles * 2; m_tileCountY = MapView.TileDriver.TileCountY; // +BoundaryTiles * 2; m_tileInfo = new TileInfo[m_tileCountX, m_tileCountY]; for (int x = 0; x < m_tileCountX; x++) { for (int y = 0; y < m_tileCountY; y++) { m_tileInfo[x, y] = new TileInfo(); } } MapVisualizer.Initialize(this, MapboxAccess.Instance); }
protected virtual void Awake() { DefaultOrientation = Screen.orientation; m_panelStacks = new List <PanelStack>(); var mainStack = new PanelStack(DefaultStackName, RootPanel); m_panelStacks.Add(mainStack); m_namedStacks = new Dictionary <string, PanelStack> { { DefaultStackName, mainStack } }; m_pushedPanelStacks = new Dictionary <Panel, PanelStack>(); m_showPanels = new HashSet <Panel>(); m_logger = new Logger(this); var allPanels = GetComponentsInChildren <Panel>(true); m_panelTypeDict = new Dictionary <Type, Panel>(); m_panelNameDict = new Dictionary <string, Panel>(); foreach (var panel in allPanels) { m_panelTypeDict[panel.GetType()] = panel; m_panelNameDict[panel.gameObject.name.TrimEnd()] = panel; if (AttachAllChildPanels && !panel.Container) { panel.Container = this; } } ObjectHelper.SetObjectsActive(ShowWhenPanelsShowing, false); ObjectHelper.SetObjectsActive(ShowWhenNoPanelsShowing, true); }
public ScriptedAnimationHandler() { m_logger = new Logger(this); }
protected override void Awake() { base.Awake(); m_logger = new Logger(this); AttemptsExhausted = new UnityEvent(); }
protected virtual void Awake() { m_logger = new Logger(this); }
protected virtual void Awake() { m_logger = new Logger(this); m_worldObjects = new HashSet <T>(); }
public ARMarkerTrackingConditionMonitor() : base("motive.ar.visualMarkerTrackingCondition") { m_logger = new Logger(this); }
protected override void Awake() { base.Awake(); m_logger = new Logger(this); }