30 lines
651 B
C#
30 lines
651 B
C#
using UnityEngine;
|
|
|
|
namespace AibisDream
|
|
{
|
|
public class StoneLifeCycle : AbsLifeCycle
|
|
{
|
|
public override void OnInit()
|
|
{
|
|
Debug.Log("场景加载");
|
|
}
|
|
|
|
public override void OnGameStart()
|
|
{
|
|
GameObject.Find("Gear System").gameObject.SetActive(true);
|
|
}
|
|
|
|
public override void OnGameEnd()
|
|
{
|
|
GameObject.Find("Gear System").gameObject.SetActive(false);
|
|
GameObject.Find("Engine System").gameObject.SetActive(false);
|
|
}
|
|
|
|
public override void OnSceneUnload()
|
|
{
|
|
Debug.Log("场景卸载");
|
|
}
|
|
}
|
|
}
|
|
|