using System.Collections; using System.Collections.Generic; using UnityEngine; public class OffMainPosition : PermanentTriggerBase { protected override void OnMDown() { base.OnMDown(); LiveSceneManager.Instance.firstPersonController.transform.SetParent(null); LiveSceneManager.Instance.firstPersonController.transform.localPosition = new Vector3(-28.67541f, 0.85f, 0.25f); LiveSceneManager.Instance.firstPersonController.GetComponent().enabled = true; LiveSceneManager.Instance.firstPersonController.GetComponent().useGravity = true; LiveSceneManager.Instance.firstPersonController.playerCanMove = true; StepManager.Instance.FinishStep(triggerName); } }