initial upload
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
[Serializable]
|
||||
public class togglevision : MonoBehaviour
|
||||
{
|
||||
public Transform NoFog;
|
||||
|
||||
public AudioClip switchsound;
|
||||
|
||||
public virtual void Update()
|
||||
{
|
||||
if (Input.GetKeyDown("f"))
|
||||
{
|
||||
GetComponent<AudioSource>().PlayOneShot(switchsound);
|
||||
UnityEngine.Object.Instantiate(NoFog, transform.position, transform.rotation);
|
||||
}
|
||||
if (Input.GetMouseButtonDown(1))
|
||||
{
|
||||
GetComponent<AudioSource>().PlayOneShot(switchsound);
|
||||
UnityEngine.Object.Instantiate(NoFog, transform.position, transform.rotation);
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void Main()
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user