Example #1
0
    public static GroundRecord GetGroundRecord(float lastGroundSize)
    {
        GameObject       ground = GameObjectFinder.FindGround();
        GroundController gc     = ground.GetComponent <GroundController>();
        float            scale  = ground.transform.localScale.x;

        if (scale != lastGroundSize)
        {
            if (scale != 100f)
            {
            }
            return(new GroundRecord(ground.transform.localScale.x, gc.TimePassed));
        }
        else
        {
            return(null);
        }
    }