Exemplo n.º 1
0
 void Start()
 {
     //ゲーム開始演出Timelineの再生
     GameObject.Find("GameTitleTimeline").GetComponent <PlayableController>().PlayTimeline();
     GameObject.Find("GameTitleTimeline(Chara)").GetComponent <PlayableController>().PlayTimeline();
     gameTitleTimeline = GameObject.Find("GameTitleTimeline").GetComponent <PlayableController>();
 }
Exemplo n.º 2
0
    /// <summary>
    /// Called when a playable controller finishes playing.
    /// </summary>
    /// <param name='controller'>
    /// Controller.
    /// </param>
    public void OnControllerFinished(PlayableController controller)
    {
        controller.OnPlayingFinished -= OnControllerFinished;

        finishedControllers++;

        if (finishedControllers >= playableControllers.Count)
        {
            DoAllControllersFinished();
        }
    }
 void Start()
 {
     //highScore = PlayerPrefs.GetFloat("HIGHSCORE", 9999);
     //Debug.Log(highScore.ToString("f2") + "秒");
     //オブジェクトを取得
     clearTimeText = GameObject.Find("ClearTimeText");
     //コンポーネントの取得
     myAnimator                 = GetComponent <Animator>();
     myRigidbody                = GetComponent <Rigidbody>();
     scoreTime                  = GameObject.Find("ScoreTime").GetComponent <Text>();
     gameClearTimeline          = GameObject.Find("GameClearTimeline").GetComponent <PlayableController>();
     gameClearTimelineHighScore = GameObject.Find("GameClearTimeline(HighScore)").GetComponent <PlayableController>();
 }
Exemplo n.º 4
0
 void Start()
 {
     //オブジェクトの格納
     scoreObject = GameObject.Find("ScoreObject");
     startObject = GameObject.Find("StartObject");
     billBoard   = GameObject.Find("BillBoard");
     //コンポーネントの格納
     sE = GameObject.Find("SE").GetComponent <SEController>();
     this.myAnimator             = GetComponent <Animator>();
     gameMethods                 = GameObject.Find("GameMethods").GetComponent <GameMethods>();
     opCounter                   = GameObject.Find("CountImage").GetComponent <OpCounter>();
     clearTimeText               = GameObject.Find("ClearTimeText").GetComponent <Text>();
     gameTitleTimeline           = GameObject.Find("GameTitleTimeline").GetComponent <PlayableController>();
     gameTitleTimelineChara      = GameObject.Find("GameTitleTimeline(Chara)").GetComponent <PlayableController>();
     gameSceneTimeline           = GameObject.Find("GameSceneTimeline").GetComponent <PlayableController>();
     gameTitleTimelineAfterScore = GameObject.Find("GameTitleTimeline(AfterScore)").GetComponent <PlayableController>();
     gameScoreTimeline           = GameObject.Find("GameScoreTimeline").GetComponent <PlayableController>();
     gameScoreTimelineChara      = GameObject.Find("GameScoreTimeline(Chara)").GetComponent <PlayableController>();
 }
Exemplo n.º 5
0
	/// <summary>
	/// Called when a playable controller finishes playing.
	/// </summary>
	/// <param name='controller'>
	/// Controller.
	/// </param>
	public void OnControllerFinished(PlayableController controller)
	{
		controller.OnPlayingFinished -= OnControllerFinished;
		
		finishedControllers++;
		
		if (finishedControllers >= playableControllers.Count) {
			DoAllControllersFinished();
		}
	}