This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 () { |