public void Init(MainSceneManager sceneManager) { _sceneManager = sceneManager; _button.onClick.AddListener(() => { _sceneManager.EndTutorial(); gameObject.SetActive(false); }); }
/// <summary> /// 初期化 /// </summary> public void Init(MainSceneManager sceneManager) { _frameMoveFlg = MoveFlg.kNone; _initFlg = true; _basketFlg = false; _sceneManager = sceneManager; SetBasket(); }
/// <summary> /// 初期設定 /// </summary> /// <param name="sceneManager"></param> public void Init(MainSceneManager sceneManager) { _sceneManager = sceneManager; // リトライボタン _retryButton.onClick.AddListener(() => { UnityEngine.SceneManagement.SceneManager.LoadScene("MainScene"); }); // ランキングボタン _rankingButton.onClick.AddListener(() => { // Type == Number の場合 naichilab.RankingLoader.Instance.SendScoreAndShowRanking(_score); }); // シェアボタン _shareButton.onClick.AddListener(() => { naichilab.UnityRoomTweet.Tweet("donguriguriguri", "どんぐりあつめて" + _score + "てんをとった!", "unityroom", "unity1week"); }); }
public void Init(MainSceneManager sceneManager) { _sceneManager = sceneManager; }
/// <summary> /// 初期化 /// </summary> /// <param name="sceneManager"></param> public void Init(MainSceneManager sceneManager) { _sceneManager = sceneManager; _time = 0.0f; }
/// <summary> /// 初期設定 /// </summary> /// <param name="sceneManager"></param> public void Init(MainSceneManager sceneManager) { _sceneManager = sceneManager; _intervalCount = 0.0f; _fallObjectList = new List <FallObject>(); }