diff --git a/Assets/Scenes/_Scene_0.unity b/Assets/Scenes/_Scene_0.unity index 67fac6d..b38f670 100644 --- a/Assets/Scenes/_Scene_0.unity +++ b/Assets/Scenes/_Scene_0.unity @@ -507,6 +507,7 @@ GameObject: m_Component: - component: {fileID: 1540568165} - component: {fileID: 1540568166} + - component: {fileID: 1540568167} m_Layer: 0 m_Name: Slingshot m_TagString: Untagged @@ -546,6 +547,18 @@ SphereCollider: serializedVersion: 2 m_Radius: 3 m_Center: {x: 0, y: 4, z: 0} +--- !u!114 &1540568167 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1540568164} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 79f74d378cdc33350830dd6c4adcadde, type: 3} + m_Name: + m_EditorClassIdentifier: --- !u!1 &1695677383 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Scripts/Slingshot.cs b/Assets/Scripts/Slingshot.cs index 0d6719a..4c5b6ca 100644 --- a/Assets/Scripts/Slingshot.cs +++ b/Assets/Scripts/Slingshot.cs @@ -1,18 +1,12 @@ -using System.Collections; -using System.Collections.Generic; using UnityEngine; +using System.Collections; public class Slingshot : MonoBehaviour { - // Start is called before the first frame update - void Start() - { - + void OnMouseEnter() { + print("Slingshot:OnMouseEnter()"); } - - // Update is called once per frame - void Update() - { - + void OnMouseExit() { + print("Slingshot:OnMouseExit()"); } }