void Start()
    {
        if (instance == null)
        {
            instance = this;
        }

        base.Initialize();

        if (friendItemSprites == null || friendItemSprites.Count == 0)
        {
            Debug.LogError("There are no friend item sprites available!");
        }

        limitIndex = minLimitIndex;
        maxLimitIndex = friendItemSprites.Count;

        InvokeRepeating("Improve", timeToImprove, timeToImprove);
    }
Ejemplo n.º 2
0
    void Start()
    {
        if (instance == null)
        {
            instance = this;
        }

        base.Initialize();

        if (friendItemSprites == null || friendItemSprites.Count == 0)
        {
            Debug.LogError("There are no friend item sprites available!");
        }

        limitIndex    = minLimitIndex;
        maxLimitIndex = friendItemSprites.Count;

        InvokeRepeating("Improve", timeToImprove, timeToImprove);
    }