// Use this for initialization void Start() { charged = false; currentCharge = Mathf.FloorToInt(fullCharge*(3/4)) ; transform.GetChild(1).gameObject.SetActive(false); chargeIncrease = 0; computer = transform.parent.GetComponent<shipComputer>(); console = GameObject.Find("ShipConsole").GetComponent<Console>(); console.AddFunctionality(new ConsoleFunctionality("chargewarp", gameObject,"Chargewarp:: No Paremeters. Begins charging the ship warp engine.",true)); console.AddFunctionality(new ConsoleFunctionality("dischargewarp", gameObject, "Dischargewarp:: No Paremeters. Stops charging the ship warp engine.", true)); console.AddFunctionality(new ConsoleFunctionality("warp", gameObject, "Warp:: No Paremeters. Activates the ship warp engine.", true)); }