private void Awake() { audioManager = GameObject.FindWithTag("AudioManager").GetComponent <AudioManager>(); shipModifier = GetComponent <ShipModifier>(); shipRigidbody = GetComponent <Rigidbody>(); ownShip = GetComponent <Base>(); }
private void Awake() { var pilotBlockController = GetComponentInChildren <PilotBlockController>(); pilotBlock = pilotBlockController.GetComponent <Block>(); baseBlocks.Add(pilotBlock); shipModifier = GetComponent <ShipModifier>(); }