Import Test files
This commit is contained in:
20
Assets/Scripts/Mono/GO_Gem.cs
Normal file
20
Assets/Scripts/Mono/GO_Gem.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class GO_Gem : MonoBehaviour {
|
||||
private Rigidbody rigidBody;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
this.rigidBody = GetComponent<Rigidbody>();
|
||||
}
|
||||
|
||||
public void Spawn() {
|
||||
this.gameObject.SetActive(true);
|
||||
}
|
||||
|
||||
public void Return() {
|
||||
this.gameObject.SetActive(false);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user