private void Start() { DebugTextManager.Display(() => "FPS: " + m_fps.ToString("f2") + "(" + (Time.deltaTime * 1000).ToString("00") + "ms)\n", -3); DebugTextManager.Display(() => { return("Resolution: " + Screen.width + "×" + Screen.height + "\n"); }, -1); //ObserverGraph.observerValue = () => m_fps; RawImageGraph.observerValue = () => m_fps; }
// Start is called before the first frame update void Start() { //本ビルドと区別がないので今は無効 //DebugBoxManager.Display(this).SetSize(200, 200).SetAlignment(TMPro.TextAlignmentOptions.Center); DebugTextManager.Display(() => transform.position.x.ToString() + ", " + transform.position.y.ToString() + ((is_atari_) ? "当たり" : "はずれ") + "\n").AddRemoveTrigger(this); // sprite_ren_ = body.GetComponent<SpriteRenderer>(); animator_ = body.GetComponent<Animator>(); hit_box_ = body.GetComponent<BoxCollider2D>(); }
// Start is called before the first frame update void Start() { DebugTextManager.Display(() => "MousePos(Screen):" + Input.mousePosition.ToString() + "\n"); DebugTextManager.Display(() => "MousePos(Canvas):" + (Input.mousePosition * 1920 / Screen.width).ToString() + "\n"); DebugTextManager.Display(() => "Position(World):" + rectTransform.position.ToString() + "\n"); onClick = () => { transform.localScale = Vector3.one; transform.DOPunchScale(Vector3.one, 1); }; onTouchEnter = () => rawImage.color = Color.red; onTouchStay = () => rawImage.color = Color.blue; onTouchExit = () => rawImage.color = Color.white; rectTransform = GetComponent <RectTransform>(); rawImage = GetComponent <RawImage>(); }
// 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; }
// Start is called before the first frame update virtual protected void Start() { rectTransform = GetComponent <RectTransform>(); SetList(size); DebugTextManager.Display(() => "index:" + index.ToString()); }