コード例 #1
0
ファイル: IsoObject.cs プロジェクト: Wizardo367/CityScape
    /// <summary>
    /// Updates the instance, occurs after Update(). Used for depth sorting.
    /// </summary>
    private void LateUpdate()
    {
        // Depth sorting

        // Check if the object is static
        if (Static && _staticDone)
        {
            return;
        }

        Isometric.DepthSort(gameObject, Offset);

        // Set _staticDone
        _staticDone = true;
    }