void Start()
    {
        player = GameObject.Find(PLAYER).GetComponent<IPlayerStateReadOnly>();
        spriteRenderer.enabled = true;

        FadeInNewLevel();
        GetPlayerPosition();
    }
Ejemplo n.º 2
0
    public float groundLine = -50.00f;                          // where above-ground ends and below-ground begins

    void Start()
    {
        player = GameObject.Find(PLAYER).GetComponent <IPlayerStateReadOnly>();
        spriteRenderer.enabled = true;

        FadeInNewLevel();
        GetPlayerPosition();
    }
Ejemplo n.º 3
0
 void OnEnable()
 {
     game   = GameObject.Find(GAME_STATE).GetComponent <IGameStateReadOnly>();
     player = GameObject.Find(PLAYER).GetComponent <IPlayerStateReadOnly>();
 }
Ejemplo n.º 4
0
 void OnEnable()
 {
     game = GameObject.Find(GAME_STATE).GetComponent<IGameStateReadOnly>();
     player = GameObject.Find(PLAYER).GetComponent<IPlayerStateReadOnly>();
 }