// Use this for initialization void Start() { GameEvents.GameEventManager.registerListener(this); playerShipComponent = playerShip.GetComponent<PlayerShip2D>(); Invoke("updateHud", 0.1f); }
// Use this for initialization void Start() { GameEvents.GameEventManager.registerListener(this); playerShipComponent = playerShip.GetComponent <PlayerShip2D>(); Invoke("updateHud", 0.1f); }
void Awake() { character = GetComponent <PlayerShip2D>(); }