Files
ichni_Official/Assets/Scripts/Game/Base/GeneralSubmodules/EditorSubmodules/SelectSubmodule.cs
SoulliesOfficial d4e860fa16 initial
2025-06-03 02:42:28 -04:00

29 lines
880 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
namespace Ichni.RhythmGame
{
public class SelectSubmodule : SubmoduleBase
{
private GameElement elementToSelect;
public SelectSubmodule(GameElement attachedGameElement, GameElement elementToSelect = null) : base(attachedGameElement)
{
(attachedGameElement as IHaveSelectSubmodule).selectSubmodule = this;
(attachedGameElement).gameObject.layer = LayerMask.NameToLayer("Selectable");
this.elementToSelect = elementToSelect == null ? attachedGameElement : elementToSelect;
}
public override void SaveBM()
{
//这个模块不需要存档
}
}
public interface IHaveSelectSubmodule
{
public SelectSubmodule selectSubmodule { get; set; }
}
}