Skip to content

Instantly share code, notes, and snippets.

@danielgc
danielgc / FighterController.cs
Created September 15, 2017 19:19
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 () {
@danielgc
danielgc / FighterBulletController.cs
Created September 15, 2017 19:20
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);