Added initial Slingshot code
This commit is contained in:
parent
1fa9a4dd60
commit
d882af77bb
@ -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
|
||||
|
@ -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()");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user