using UnityEngine;
using System.Collections;

public class PlayerShip : MonoBehaviour {

	void Awake () {
		BaseShipComponent[] comp = GetComponentsInChildren<BaseShipComponent>();
		foreach(BaseShipComponent b in comp)
		{
			b.BaseShip = this;
		}
	}
	
	// Update is called once per frame
	void Update () {
		
	}

	void OnTriggerEnter2D (Collider2D other) {
		Debug.Log ("We hit other. Collision.name: " + other.gameObject.name);

	}

	void OnCollisionEnter2D (Collision2D collision) {

		Debug.Log ("We hit other. Collision.name: " + collision.gameObject.name);
	}

}
