Esempio n. 1
0
    void Awake()
    {
        controller = GetComponent<CharacterController>();

        fx = GameObject.FindObjectOfType<FullScreenFX>();
        if(Application.loadedLevelName == firstLevelName)
        {
            fx.SendMessage("OnGameBeginFX", 2f);
        }
        else
        {
            fx.SendMessage("OnLevelBeginFX", 2f);
        }
    }
Esempio n. 2
0
    void Start()
    {
        startTime = Time.time;
        fx = GameObject.FindObjectOfType<FullScreenFX>();

        fx.SendMessage("OnTitleBeginFX", 2f);
    }
Esempio n. 3
0
 // Use this for initialization
 void Start()
 {
     highscores = GetComponent<Highscores>();
     fx = GameObject.FindObjectOfType<FullScreenFX>();
     fx.SendMessage("OnTitleBeginFX", 1f);
 }