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