From e8dd5d4fd406e6e6b710cbe85309f6870bccc37a Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 3 Nov 2019 18:31:04 -0500 Subject: Remove everything --- Assets/Scripts/Player/PlayerMovement.cs | 36 --------------------------------- 1 file changed, 36 deletions(-) delete mode 100644 Assets/Scripts/Player/PlayerMovement.cs (limited to 'Assets/Scripts/Player/PlayerMovement.cs') diff --git a/Assets/Scripts/Player/PlayerMovement.cs b/Assets/Scripts/Player/PlayerMovement.cs deleted file mode 100644 index 8f02b5b..0000000 --- a/Assets/Scripts/Player/PlayerMovement.cs +++ /dev/null @@ -1,36 +0,0 @@ -/******************************************************************************* -* -* Unicity (Project SimLife): A Sims clone written in Unity C# -* Copyright (C) 2019 Unicity Development Team -* -* This software is protected by the copyright and licensing rights held -* by the Unicity Development Team. (2019) -* -*********************************************************************************/ -using UnityEngine; -using UnityEngine.AI; - -public class PlayerMovement : MonoBehaviour -{ - NavMeshAgent agent; - - // Start is called before the first frame update - void Start() - { - agent = GetComponent (); - } - - // Update is called once per frame - void Update() - { - if(Input.GetMouseButtonDown(0)) - { - RaycastHit hit; - Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition); - if(Physics.Raycast(ray, out hit, Mathf.Infinity)) - { - agent.SetDestination(hit.point); - } - } - } -} -- cgit v1.2.3