Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

2d Top-Down, spawning bullets in C#

$
0
0
i am currently working on the controls for my game. they will be similar to robotron,smash tv, or geometry. i have been trying to figure out for 2 days now how to instantiate my projectile prefab. i've scoured google and the forums for hours. Any help would be greatly appreciated.

The prefab i am trying to spawn is placed here Assets/Prefabs/Projectile.



Code (CSharp):
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class Player : MonoBehaviour
  5. {
  6.  
  7.         Vector3 vNewInput = new...
2d Top-Down, spawning bullets in C#

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>