21 lines
397 B
C#
21 lines
397 B
C#
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);
|
|
}
|
|
}
|