Esempio n. 1
0
    protected float GetHorizontalGap()
    {
        //Get gap field from parent
        GamePlayBehaviour behaviour = GameObject.Find(Const.gamePlayGameObject).GetComponent <GamePlayBehaviour>();

        return(behaviour.GetHorizontalGap());
    }
Esempio n. 2
0
    /// <summary>
    /// Gets the scrolling speed from the parent and returns it
    /// </summary>
    /// <returns>Scroll speed</returns>
    protected float GetNewScrollSpeed()
    {
        //Get game speed
        GamePlayBehaviour behaviour = GameObject.Find(Const.gamePlayGameObject).GetComponent <GamePlayBehaviour>();

        return(behaviour.GetGameSpeed());
    }