36 lines
617 B
C#
36 lines
617 B
C#
|
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
public class NoFire : MonoBehaviour
|
|||
|
{
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
private GameObject MuzzlePos;
|
|||
|
// Start is called before the first frame update
|
|||
|
void Start()
|
|||
|
{
|
|||
|
Init();
|
|||
|
}
|
|||
|
|
|||
|
// Update is called once per frame
|
|||
|
void Update()
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
void Init()
|
|||
|
{
|
|||
|
MuzzlePos = transform.Find("Muzzle").gameObject;
|
|||
|
MuzzlePos.SetActive(false);
|
|||
|
}
|
|||
|
|
|||
|
public void StartFire()
|
|||
|
{
|
|||
|
MuzzlePos.SetActive(true);
|
|||
|
}
|
|||
|
|
|||
|
public void StopFire()
|
|||
|
{
|
|||
|
MuzzlePos.SetActive(false);
|
|||
|
}
|
|||
|
}
|