コード例 #1
0
	// Use this for initialization
	void Start () {
		animationScript = GetComponent<PlayerAnimation> ();
		jumpScript = GetComponent<PlayerJump> ();
		localSpriteRenderer = GetComponent<SpriteRenderer> ();
		scoreScript = GetComponent<TheScoreSystem> ();
		currentHealth = maxHealth;

		healthUIScript = gameUI.GetComponent<UIHealth> ();
	}
コード例 #2
0
	// Use this for initialization
	void Start () {
		scoreScript = thePlayer.GetComponent<TheScoreSystem> ();
	
		currentHighScores = getCurrentHighScore ();

		currentMaxHighScore = currentHighScores [0];

		thePlayer.GetComponent<TheScoreSystem> ().setCurrentMaxHighScore (currentMaxHighScore);
	
	}