コード例 #1
0
ファイル: SnakePart.cs プロジェクト: teonistor/snake-n
    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);
        }
    }