Beispiel #1
0
 public void Init(MainSceneManager sceneManager)
 {
     _sceneManager = sceneManager;
     _button.onClick.AddListener(() => {
         _sceneManager.EndTutorial();
         gameObject.SetActive(false);
     });
 }
Beispiel #2
0
 /// <summary>
 /// 初期化
 /// </summary>
 public void Init(MainSceneManager sceneManager)
 {
     _frameMoveFlg = MoveFlg.kNone;
     _initFlg      = true;
     _basketFlg    = false;
     _sceneManager = sceneManager;
     SetBasket();
 }
Beispiel #3
0
 /// <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");
     });
 }
Beispiel #4
0
 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>();
 }