//Pre-Initialisation private void Awake() { ////Raycast Line Check - Rework to a sphere cast.? //rayCast = new Ray(transform.position, Vector3.up); //CCM = GameObject.FindGameObjectWithTag("CCM").GetComponent<Canister_Charger_Manager>(); //Current systems ray casting object, first child of this system_Ray = this.transform.GetChild(0).GetComponent <System_RayCast>(); //So that it has something to check against //CCM.usedCanisterID.Add(0); }
//Pre-Initialisation private void Awake() { //Get the system manager system = GameObject.FindGameObjectWithTag("Base_System").GetComponent <Base_System>(); ////Raycast Line Check - Rework to a sphere cast.? //rayCast = new Ray(transform.position, Vector3.up); //Current systems ray casting object, first child of this system_Ray = this.transform.GetChild(0).GetComponent <System_RayCast>(); //Default value for the currentCanister //currentCanister = null; }