Move scripts to Scripts folder

This commit is contained in:
Gabriel Le Breton
2020-10-08 10:26:37 -04:00
parent d8a020a4d6
commit 981f4577ee
5 changed files with 8 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.Serialization;
public class OnCollisionEnterEvent : MonoBehaviour
{
[SerializeField] private UnityEvent @event;
[SerializeField] private string otherGameObjectName = "Sphere";
private void OnCollisionEnter(Collision other)
{
if (other.gameObject.name == otherGameObjectName)
{
@event.Invoke();
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: be4907e9cc9c54b219b223b53a32836c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
+15
View File
@@ -0,0 +1,15 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class YouWin : MonoBehaviour
{
[SerializeField]
private GameObject gameObjectToEnable;
public void Run()
{
gameObjectToEnable.SetActive(true);
}
}
+11
View File
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: bf8b8b4d9aab540ccb2b4caa1443dfe7
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: