29 lines
880 B
C#
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; }
|
|
}
|
|
} |