OM8890
1
Here’s the current code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class KillDummy : MonoBehaviour
{
//Variables
public TrailRenderer trailLine;
public GameObject Bullet;
//Code
void Start()
{
Bullet.SetActive(false);
}
void Update()
{
if(Input.GetMouseButtonDown(0))
{
Bullet.SetActive(true);
}
}
}
When you post code on the forum, use Code Tags to make it easier to read.
Besides that, just Google some tutorials. There’s plenty of videos that explain the entire thing much better than most people on this forum can do.
1 Like
OM8890
4
I am actually doing this for a 3D game.
It should not really make any difference. Just use the 3D versions of the things instead of the 2D versions.