something & 编辑器指南

This commit is contained in:
2025-04-19 18:59:26 +08:00
parent d7ce55cd04
commit a0f7ec7e15
15 changed files with 4567 additions and 3754 deletions

View File

@@ -1,10 +1,8 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Unity.Mathematics;
using Ichni.Editor;
using UnityEngine;
using UnityEngine.Serialization;
namespace Ichni.RhythmGame
{
@@ -20,7 +18,18 @@ namespace Ichni.RhythmGame
timeDurationSubmodule = new TimeDurationSubmodule(this);
}
public override void Initialize(string name, Guid elementGuid, List<string> tags,
bool isFirstGenerated, GameElement parentElement)
{
base.Initialize(name, elementGuid, tags, isFirstGenerated, parentElement);
if (this.parentElement.submoduleList.Where(e => e is TransformSubmodule).Count() == 0)
{
LogWindow.Log("AnimationBase must be attached to a GameElement with TransformSubmodule", Color.red);
//OnDelete();
//return;
}
}
/// <summary>
/// 更新动画
/// </summary>