コード例 #1
0
 protected override void Start()
 {
     base.Start();
     for (int i = 0; i < size; i++)
     {
         onClick[i] = () => DebugNotificationGenerator.Notify(i.ToString);
     }
 }
コード例 #2
0
            // セーブ予定のデータをすべてセーブする
            public void Save()
            {
                if(save_action_queue_.Count >= 1)
                {
                    DebugNotificationGenerator.Notify("セーブしました");
                }

                while (save_action_queue_.Count >= 1)
                {
                    save_action_queue_.Dequeue()();
                }
            }
コード例 #3
0
    // Start is called before the first frame update
    void Start()
    {
        Time.timeScale = 1;

#if UNITY_EDITOR
        DebugNotificationGenerator.Notify("Qキーでデバッグ表示ON/OFF");
#else
        DebugNotificationGenerator.Notify("4本マルチタッチでデバッグ表示ON/OFF");
#endif

#if UNITY_EDITOR
        isTestPlay = EditorPrefs.GetBool("testPlayFlag", false);
        if (isTestPlay)
        {
            Debug.Log("これはテストプレイです😀");
            EditorPrefs.SetBool("testPlayFlag", false);
            mode = PlayMode.Debug;
            var path = "Assets/Main/Games/TestPlayPackage.asset";
            singleGame     = AssetDatabase.LoadAssetAtPath <GamePackage>(path);
            Time.timeScale = EditorPrefs.GetFloat("timeScale", 1);
            //Initialization();
        }
#endif

        //Debug.Log(SceneManager.GetActiveScene().buildIndex);

        /*
         * if (mode != PlayMode.None)
         * {
         *  Initialization();
         * }
         */

        //やばい実装、後で直す
        if (SceneManager.GetActiveScene().buildIndex == 1)
        {
            mode = PlayMode.Normal;
        }
        else
        {
            //IsGamePlaying = true;
            //mode = PlayMode.None;
        }

        if (mode != PlayMode.None)
        {
            Initialization();
        }

        statementMesh.gameObject.SetActive(false);

        //デバッグ用
        //EndGame();
        DebugTextManager.Display(() => "TimeScale:" + Time.timeScale + "\n");
        //DebugTextManager.Display(() => "progress:" + async.progress + "\n");
        //DebugTextManager.Display(() => "IsGamePlaying:" + IsGamePlaying.ToString() + "\n");
        DebugTextManager.Display(() => "mode:" + mode.ToString() + "\n");
        //DebugTextManager.Display(() => "gameType:" + currentGameType.ToString() + "\n");
        //DebugTextManager.Display(() => "Loading:" + (async.progress * 100).ToString("D3") + "%\n");
        //DebugTextManager.Display(() => "Aspect:" + managerCamera.aspect + "\n");
        //DebugTextManager.Display(() => "AdsIsReady:" + Advertisement.IsReady() + "\n");
        //managerCammera.DOAspect(1, 5);
        //managerCammera.aspect = 16f / 9f;
        //カメラをアス比に合わせる設定
        //managerCamera.orthographicSize *= 16f / 9f / managerCamera.aspect;
    }