MoTaForPSVita/Assets/Scripts/Controller/Environment/HideWallController.cs

21 lines
639 B
C#
Raw Normal View History

2024-04-30 17:39:50 +08:00
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class HideWallController : EnvironmentController
{
public override bool Interaction()
{
if (_opening) return false;
Open(() =>
{// 打开后创建墙壁
2024-04-30 17:39:50 +08:00
GameManager.Instance.PoolManager.GetResourceInFreePool(EResourceType.Environment, 6).transform.position = transform.position;
// 改变剧情
2024-04-30 17:39:50 +08:00
if (GameManager.Instance.LevelManager.Level == 23) GameManager.Instance.PlotManager.PlotDictionary[7] += 1;
});
_opening = true;
return false;
}
}