i’m follwing the video of ‘youtube’.
this code is a following codes. but Projectile is red underline…
so, i can not proceed this video lecture…
would you please answer my question?
i’d like to proceed the lecture…T.T
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Gun : MonoBehaviour {
public Transform muzzle;
public Projectile projectile;
public float msBetweenShots = 100;
public float muzzleVelocity = 35;
public
public void Shoot()
{
Projector newProjector = Instantiate(projector, muzzle.position, muzzle.rotation) as Projector;
newProjector.
}
}