Initialize() public static method

public static Initialize ( ) : void
return void
コード例 #1
0
    IEnumerator InitializeEveryplay()
    {
        yield return(0);

        Everyplay.Initialize();
        Destroy(gameObject);
    }
コード例 #2
0
    static void InitializeEveryplayOnStartup()
    {
        EveryplaySettings settings = (EveryplaySettings)Resources.Load("EveryplaySettings");

        if (settings != null)
        {
            if (settings.earlyInitializerEnabled && settings.IsEnabled && settings.IsValid)
            {
                Everyplay.Initialize();
            }
        }
    }
コード例 #3
0
    void Start()
    {
        if (Debug.isDebugBuild)
        {
            UnlockAllLevels(unlockAll);
        }
        else
        {
            RefreshLevelUnlockStates();
        }

#if EVERYPLAY_IPHONE || EVERYPLAY_ANDROID
        Everyplay.Initialize();
#endif
    }
コード例 #4
0
    //=====================================================

    void Start()
    {
        // Using local playerData instance for holding gems / redGems
        _localPlayerData.Reset(false);

        // Clear gui in puzzle-rooms
        var location = GameManager.Instance.CurrentLocation;

        if (location != eLocation.MAIN_HALL && location != eLocation.COMMON_ROOM)
        {
            //Debug.Log( "SceneManager->Start : local data only : " + _localPlayerData.Gems );
            GuiManager.Instance.TxtGems = "" + _localPlayerData.Gems;
        }
        else
        {
            //Debug.Log( "SceneManager->Start : global and local data: " + GameDataManager.Instance.PlayerGems + " : " + _localPlayerData.Gems );
            GuiManager.Instance.TxtGems = "" + (GameDataManager.Instance.PlayerGems + _localPlayerData.Gems);
        }

        // Start music for scene
        if (AudioManager.Instance != null)
        {
            AudioManager.Instance.PlayMusic(location);
        }

        // Init player
        GameManager.Instance.InitFairy();

        // Start Everyplay recording
        Everyplay.ReadyForRecording += OnReadyForRecording;
        Everyplay.Initialize();
        // Start fade-in
        if (GameManager.Instance.CurrentLocation == eLocation.BOSS_ROOM)
        {
            // Start intro cutscene
            GameManager.Instance.OnBossStartEvent();
        }
        else
        {
            // Show tutorial screens?
            if (GameManager.Instance.CurrentLocation == eLocation.TUTORIAL)              // ToDo: && NOT VIEWED TUTORIAL
            {
                ScreenManager.FadeInCompleteEvent += OnFadeInCompleteEvent;
            }

            Invoke("FadeIn", 0.5f);
        }
    }
コード例 #5
0
ファイル: Recording.cs プロジェクト: weacw/skbrowser
        public void Awake()
        {
            issupported = Everyplay.IsSupported();
            isinited    = true;
            if (!issupported)
            {
                return;
            }
            Everyplay.SetDisableSingleCoreDevices(disablesinglecoredevices);
            //Everyplay.SetMaxRecordingSecondsLength(maxrecordingminuteslength);
            Everyplay.SetLowMemoryDevice(optimizeforlowmemory);

            Everyplay.RecordingStarted += Onstartrecording;
            Everyplay.RecordingStopped += Onstoprecording;

            Everyplay.Initialize();
        }
コード例 #6
0
ファイル: Recording.cs プロジェクト: hopefullamp/SR
    void Update()
    {
        if (Input.GetMouseButtonDown(0))
        {
            Ray        ray = Camera.main.ScreenPointToRay(Input.mousePosition);
            RaycastHit hitInfo;
            if (Physics.Raycast(ray, out hitInfo))
            {
                if (hitInfo.collider.gameObject.tag == "REC")
                {
                    if (switched == true)
                    {
                        switched = false;
                        touched  = 0;
                        Everyplay.StopRecording();
                        Debug.Log("Record Stop");
                        //토글을 끈다
                    }

                    else if (switched == false)
                    {
                        switched = true;
                        touched  = 1;
                        //토글을 켠다
                        Everyplay.Initialize();
                        Everyplay.StartRecording();
                        Debug.Log("Record Start");
                    }
                }
            }
        }

        if (touched == 1)
        {
            //토글이 켜진 경우
        }
        if (touched == 0)
        {
            //토글이 꺼진 경우
        }
    }
コード例 #7
0
 void Awake()
 {
     Everyplay.Initialize();
 }