using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public abstract class ModuleController : MonoBehaviour {
	protected GameObject spaceShip;
	protected GameObject spaceShipCollider;
	protected Rigidbody2D spaceShipColliderRigidbody2d;

	protected CharController charController;

	void Start () {
		spaceShip = gameObject.transform.parent.parent.gameObject;
		spaceShipCollider = spaceShip.transform.FindChild("Collider").gameObject;
		spaceShipColliderRigidbody2d = spaceShipCollider.GetComponent<Rigidbody2D>();
	}

	public void setCharController(CharController newCharController) {
		charController = newCharController;
	}
}
