19 lines
755 B
C#
19 lines
755 B
C#
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<CapsuleCollider>().enabled = true;
|
|
LiveSceneManager.Instance.firstPersonController.GetComponent<Rigidbody>().useGravity = true;
|
|
LiveSceneManager.Instance.firstPersonController.playerCanMove = true;
|
|
|
|
StepManager.Instance.FinishStep(triggerName);
|
|
}
|
|
}
|