<commit_before>﻿using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Events;
using System.Collections;

public abstract class Ship : SpaceObject {

	public WeaponManager weapon;
	public EngineManager engine;

	private UnityEvent engineEvents;

	protected override void Awake () {
		engine.OnSpeedUpdated += OnSpeedUpdated;
	}

	protected override void Start () {
		base.Start ();

		OnSpeedUpdated (); // Init the EngineController info in the HUD
	}

	protected virtual void FixedUpdate () {
		Move ();
	}

	/*
	 * Move the ship.
	 */
	protected abstract void Move ();

	/*
	 * Manage the notifications of the EngineController.
	 */
	protected abstract void OnSpeedUpdated ();<commit_msg>fix(Ship.cs): call base function in overrided function Awake<commit_after>﻿using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Events;
using System.Collections;

public abstract class Ship : SpaceObject {

	public WeaponManager weapon;
	public EngineManager engine;

	private UnityEvent engineEvents;

	protected override void Awake () {
		base.Awake ();
		engine.OnSpeedUpdated += OnSpeedUpdated;
	}

	protected override void Start () {
		base.Start ();
		OnSpeedUpdated (); // Init the EngineController info in the HUD
	}

	protected virtual void FixedUpdate () {
		Move ();
	}

	/*
	 * Move the ship.
	 */
	protected abstract void Move ();

	/*
	 * Manage the notifications of the EngineController.
	 */
	protected abstract void OnSpeedUpdated ();
{'fraction_non_alphanumeric': 0.09097174362508614, 'fraction_numerical': 0.0, 'mean_word_length': 4.059233449477352, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6514418', 'n_tokens_mistral': 419, 'n_tokens_neox': 386, 'n_words': 134}