改现场场景
This commit is contained in:
parent
a05111a86c
commit
8f07996c68
Assets
Plugins/ModularFirstPersonController/FirstPersonController
Resources/Prefabs/Objects/Tools
Scenes
Scripts
CXX
Project/Objects/Other
|
@ -209,6 +209,9 @@ public class FirstPersonController : MonoBehaviour
|
||||||
|
|
||||||
private void Update()
|
private void Update()
|
||||||
{
|
{
|
||||||
|
float scrollValue=Input.GetAxis("Mouse ScrollWheel");
|
||||||
|
playerCamera.fieldOfView = Mathf.Clamp(playerCamera.fieldOfView - scrollValue * 20, 20, 60);
|
||||||
|
|
||||||
#region Camera
|
#region Camera
|
||||||
|
|
||||||
// Control camera movement
|
// Control camera movement
|
||||||
|
|
|
@ -854,6 +854,9 @@ MonoBehaviour:
|
||||||
m_Script: {fileID: 11500000, guid: c14d4048c65d4de42bed3852172e0883, type: 3}
|
m_Script: {fileID: 11500000, guid: c14d4048c65d4de42bed3852172e0883, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
|
triggerID: 0
|
||||||
|
triggerName:
|
||||||
|
_highlight: {fileID: 0}
|
||||||
toolType: 0
|
toolType: 0
|
||||||
dangweiValue: 0
|
dangweiValue: 0
|
||||||
dangWei: {fileID: 4800734424466799504}
|
dangWei: {fileID: 4800734424466799504}
|
||||||
|
|
|
@ -30,7 +30,7 @@ Transform:
|
||||||
m_GameObject: {fileID: 7175692158753146328}
|
m_GameObject: {fileID: 7175692158753146328}
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
m_LocalPosition: {x: -3.263, y: -0.8240001, z: -2.3841999}
|
m_LocalPosition: {x: -3.263, y: -0.8240001, z: -2.3841999}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 0.6, y: 0.6, z: 0.6}
|
||||||
m_ConstrainProportionsScale: 0
|
m_ConstrainProportionsScale: 0
|
||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 7829523123839521089}
|
- {fileID: 7829523123839521089}
|
||||||
|
@ -275,6 +275,7 @@ MonoBehaviour:
|
||||||
m_Script: {fileID: 11500000, guid: 7109556262b96d04ab6087785619c639, type: 3}
|
m_Script: {fileID: 11500000, guid: 7109556262b96d04ab6087785619c639, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
|
triggerId: 0
|
||||||
toolType: 2
|
toolType: 2
|
||||||
--- !u!1001 &7719931383897142954
|
--- !u!1001 &7719931383897142954
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -2,11 +2,21 @@ using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
public class Device_Base : MonoBehaviour
|
public class Device_Base : PermanentTriggerBase
|
||||||
{
|
{
|
||||||
public int triggerId;
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 设备类型
|
/// 设备类型
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public DeviceType deviceType;
|
public DeviceType deviceType;
|
||||||
|
|
||||||
|
protected override void OnMEnter()
|
||||||
|
{
|
||||||
|
base.OnMEnter();
|
||||||
|
_highlight.highlighted = true;
|
||||||
|
}
|
||||||
|
protected override void OnMExit()
|
||||||
|
{
|
||||||
|
base.OnMExit();
|
||||||
|
_highlight.highlighted = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,11 +5,21 @@ using UnityEngine;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 묏야꼼죕샘잚
|
/// 묏야꼼죕샘잚
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class Tool_Base : MonoBehaviour
|
public class Tool_Base : PermanentTriggerBase
|
||||||
{
|
{
|
||||||
public int triggerId;
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 묏야잚謹
|
/// 묏야잚謹
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ToolType toolType;
|
public ToolType toolType;
|
||||||
|
|
||||||
|
protected override void OnMEnter()
|
||||||
|
{
|
||||||
|
base.OnMEnter();
|
||||||
|
_highlight.highlighted = true;
|
||||||
|
}
|
||||||
|
protected override void OnMExit()
|
||||||
|
{
|
||||||
|
base.OnMExit();
|
||||||
|
_highlight.highlighted = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,14 +32,14 @@ public class Tool_WireStripper : Tool_Base
|
||||||
//´ò¿ª
|
//´ò¿ª
|
||||||
while (renderer.GetBlendShapeWeight(0) < 100)
|
while (renderer.GetBlendShapeWeight(0) < 100)
|
||||||
{
|
{
|
||||||
vlaue += (Time.deltaTime * 50);
|
vlaue += (Time.deltaTime * 100);
|
||||||
renderer.SetBlendShapeWeight(0, vlaue);
|
renderer.SetBlendShapeWeight(0, vlaue);
|
||||||
yield return null;
|
yield return null;
|
||||||
}
|
}
|
||||||
//¹Ø±Õ
|
//¹Ø±Õ
|
||||||
while (renderer.GetBlendShapeWeight(0) > 0)
|
while (renderer.GetBlendShapeWeight(0) > 0)
|
||||||
{
|
{
|
||||||
vlaue -= (Time.deltaTime * 50);
|
vlaue -= (Time.deltaTime * 100);
|
||||||
renderer.SetBlendShapeWeight(0, vlaue);
|
renderer.SetBlendShapeWeight(0, vlaue);
|
||||||
yield return null;
|
yield return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,10 @@ public class PermanentTriggerBase : MonoBehaviour
|
||||||
|
|
||||||
private void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
GameManager.EventMgr.AddEventListener<int>(Enum_EventType.SwitchSubProcessStepTriggerID, SwitchSubProcessStepTriggerID);
|
if (GameManager.EventMgr != null)
|
||||||
|
{
|
||||||
|
GameManager.EventMgr.AddEventListener<int>(Enum_EventType.SwitchSubProcessStepTriggerID, SwitchSubProcessStepTriggerID);
|
||||||
|
}
|
||||||
OnStart();
|
OnStart();
|
||||||
}
|
}
|
||||||
private void SwitchSubProcessStepTriggerID(int arg0)
|
private void SwitchSubProcessStepTriggerID(int arg0)
|
||||||
|
|
Loading…
Reference in New Issue