Graphics Reference
In-Depth Information
void FinishGame ()
{
Application.LoadLevel( mainMenuSceneName );
}
void ShowCount1 ()
{
count1.SetActive( true );
count2.SetActive( false );
count3.SetActive( false );
}
void ShowCount2 ()
{
count1.SetActive( false );
count2.SetActive( true );
count3.SetActive( false );
}
void ShowCount3 ()
{
count1.SetActive( false );
count2.SetActive( false );
count3.SetActive( true );
}
void FinishedCount ()
{
HideCount ();
// let the timer begin!
theTimer.StartTimer();
}
void HideCount ()
{
count1.SetActive( false );
count2.SetActive( false );
count3.SetActive( false );
}
public void PlayerHit(Transform whichPlayer)
{
// tell our sound controller to play an explosion sound
BaseSoundController.Instance.PlaySoundByIndex( 1,
whichPlayer.position );
// call the explosion function!
//Explode( whichPlayer.position );
}
public void PlayerBigHit(Transform whichPlayer)
{
// tell our sound controller to play an explosion sound
BaseSoundController.Instance.PlaySoundByIndex( 2,
whichPlayer.position );
// call the explosion function!
Explode( whichPlayer.position );
}
Search WWH ::




Custom Search