Skip to content

Instantly share code, notes, and snippets.

@danielgc
danielgc / FighterBulletController.cs
Created Sep 15, 2017
FighterBulletController.cs
View FighterBulletController.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FigtherBulletController : MonoBehaviour {
public float bulletSpeed = 18f;
// Use this for initialization
void Start () {
this.GetComponent<Rigidbody2D>().velocity = new Vector3 (0, bulletSpeed, 0);
View FighterController.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FighterController : MonoBehaviour {
public float speed = 10f;
public float padding = 1.3f;
public GameObject bullet;
// Use this for initialization
void Start () {