player can pick up grass now

master
Jordan Orelli 4 years ago
parent bbc430efb8
commit 973ce3ef7e

@ -12,6 +12,7 @@ GameObject:
- component: {fileID: 8690465596694294639} - component: {fileID: 8690465596694294639}
- component: {fileID: 3145259671590046870} - component: {fileID: 3145259671590046870}
- component: {fileID: 9136160893208226110} - component: {fileID: 9136160893208226110}
- component: {fileID: 815455091500221479}
m_Layer: 0 m_Layer: 0
m_Name: grass m_Name: grass
m_TagString: Untagged m_TagString: Untagged
@ -26,7 +27,7 @@ Transform:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3718534089451419722} m_GameObject: {fileID: 3718534089451419722}
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 89.5, y: 0.25, z: 0} m_LocalPosition: {x: 89.5, y: 0.25, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: [] m_Children: []
@ -90,7 +91,7 @@ BoxCollider2D:
m_Enabled: 1 m_Enabled: 1
m_Density: 1 m_Density: 1
m_Material: {fileID: 0} m_Material: {fileID: 0}
m_IsTrigger: 0 m_IsTrigger: 1
m_UsedByEffector: 0 m_UsedByEffector: 0
m_UsedByComposite: 0 m_UsedByComposite: 0
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
@ -106,3 +107,15 @@ BoxCollider2D:
serializedVersion: 2 serializedVersion: 2
m_Size: {x: 1, y: 0.5} m_Size: {x: 1, y: 0.5}
m_EdgeRadius: 0 m_EdgeRadius: 0
--- !u!114 &815455091500221479
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3718534089451419722}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 86848c7dd648f6c4aa0f53b506d13a0d, type: 3}
m_Name:
m_EditorClassIdentifier:

File diff suppressed because it is too large Load Diff

@ -0,0 +1,22 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Grass : MonoBehaviour
{
// Start is called before the first frame update
void Start() {
}
// Update is called once per frame
void Update() {
}
void OnTriggerEnter2D(Collider2D collider) {
if (collider.CompareTag("Player")) {
Destroy(gameObject);
}
}
}

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 86848c7dd648f6c4aa0f53b506d13a0d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Loading…
Cancel
Save