Added initial Slingshot code

This commit is contained in:
Trianta 2024-02-19 18:39:28 -06:00
parent 1fa9a4dd60
commit d882af77bb
2 changed files with 18 additions and 11 deletions

View File

@ -507,6 +507,7 @@ GameObject:
m_Component: m_Component:
- component: {fileID: 1540568165} - component: {fileID: 1540568165}
- component: {fileID: 1540568166} - component: {fileID: 1540568166}
- component: {fileID: 1540568167}
m_Layer: 0 m_Layer: 0
m_Name: Slingshot m_Name: Slingshot
m_TagString: Untagged m_TagString: Untagged
@ -546,6 +547,18 @@ SphereCollider:
serializedVersion: 2 serializedVersion: 2
m_Radius: 3 m_Radius: 3
m_Center: {x: 0, y: 4, z: 0} 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 --- !u!1 &1695677383
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

View File

@ -1,18 +1,12 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine; using UnityEngine;
using System.Collections;
public class Slingshot : MonoBehaviour public class Slingshot : MonoBehaviour
{ {
// Start is called before the first frame update void OnMouseEnter() {
void Start() print("Slingshot:OnMouseEnter()");
{
} }
void OnMouseExit() {
// Update is called once per frame print("Slingshot:OnMouseExit()");
void Update()
{
} }
} }