/// <summary> /// Add basic player components; network, catalogue, session, client and analytics /// </summary> void InitComponents() { gameObject.AddComponent <VPlayerController>(); if (m_network == null) { m_network = gameObject.AddComponent <VNetwork>(); } if (m_catalogue == null) { m_catalogue = gameObject.AddComponent <VCatalogue>(); } if (m_session == null) { m_session = gameObject.AddComponent <VSession>(); } if (m_client == null) { m_client = gameObject.AddComponent <VClient>(); } if (m_analytics == null) { m_analytics = gameObject.AddComponent <VAnalytics>(); } VSettings.ValintaApplicationID = string.IsNullOrEmpty(ValintaApplicationID) ? "DeveloperPreviewApplication000" : ValintaApplicationID; VSettings.UseWWWForAudioClip = UseWWWForAudioDownload; VClient.OnClientInfoReady += OnClientInfoReady; VSession.OnSessionReady += OnSessionReady; }
void Awake() { if (m_network == null) { m_network = ValintaPlayer.Instance.GetNetworkInstance(); } if (m_catalogue == null) { m_catalogue = ValintaPlayer.Instance.GetCatalogueInstance(); } }
void Awake() { if (Instance != null) { return; } if (m_network == null) { m_network = ValintaPlayer.Instance.GetNetworkInstance(); } Instance = this; }
void Start() { if (GetComponent <AudioSource>() == null) { m_audioSource = gameObject.AddComponent <AudioSource>(); } else { m_audioSource = GetComponent <AudioSource>(); } m_network = ValintaPlayer.Instance.GetNetworkInstance(); ChangeState(PlayerState.Standby); }
public VPlayableAd() { m_network = ValintaPlayer.Instance.GetNetworkInstance(); }
void Start() { m_network = ValintaPlayer.Instance.GetNetworkInstance(); }