Exemple #1
0
    protected virtual void QuarterTile()    // TODO rename this
    {
        if (indexInSnake < World.currentEnergy && tail == null)
        {
            tail = Instantiate(another, transform.parent).GetComponent <SnakePart>();
            tail.indexInSnake = indexInSnake + 1;
        }

        if (tail != null)
        {
            tail.Instruct(currentSection, Animation.clip);
        }
    }