移除ECM2

This commit is contained in:
2025-05-11 21:42:51 +08:00
parent aadd564c38
commit a7bf033ca9
726 changed files with 0 additions and 138648 deletions

View File

@@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 07e8527a0b4a74a499bc7cb6141cde2f
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 8174431480bf58e4bb799dc16872fd1a
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 29da16f261490c14d8c1fac875527f9f
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 23800000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 3678e43c71132c644a7d78497c95f59c
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,38 +0,0 @@
using UnityEngine;
using UnityEngine.InputSystem;
namespace ECM2.Walkthrough.Ex81
{
/// <summary>
/// This example make use of the new (introduced in v1.4) NavMeshCharacter component,
/// to implement a typical click to move.
///
/// The NavMeshCharacter component replaces the AgentCharacter adding NavMesh navigation
/// capabilities to a Character through composition.
/// </summary>
public class ClickToMove : MonoBehaviour
{
public Camera mainCamera;
public Character character;
public LayerMask groundMask;
private NavMeshCharacter _navMeshCharacter;
private void Awake()
{
_navMeshCharacter = character.GetComponent<NavMeshCharacter>();
}
private void Update()
{
if (Mouse.current.leftButton.isPressed)
{
Ray ray = mainCamera.ScreenPointToRay(Input.mousePosition);
if (Physics.Raycast(ray, out RaycastHit hitResult, Mathf.Infinity, groundMask))
_navMeshCharacter.MoveToDestination(hitResult.point);
}
}
}
}

View File

@@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 73efcbc164914ab79ce2097117b3d8c0
timeCreated: 1699930097