public void Initialize(GameObject shipSelectionMenuPanel) { acceleration = new BarDisplay(accelerationDisplay, barFillSpeed); topSpeed = new BarDisplay(topSpeedDisplay, barFillSpeed); maneuverability = new BarDisplay(maneuverabilityDisplay, barFillSpeed); maxHealth = new BarDisplay(maxHealthDisplay, barFillSpeed); maxShield = new BarDisplay(maxShieldDisplay, barFillSpeed); shieldRecharge = new BarDisplay(shieldRechargeDisplay, barFillSpeed); this.shipSelectionMenuPanel = shipSelectionMenuPanel; this.shipSelectionMenuPanel.SetActive(false); closeButton.onClick.AddListener(ClearActions); }
void Awake() { if (manager == null) { manager = this; } GlobalGreenBall = Instantiate(GreenBallObj, Vector3.zero, Quaternion.identity); player = GameObject.FindGameObjectWithTag("Player").GetComponent <Asderek>(); pause = gameObject.GetComponentInChildren <PauseMenu>(); hp = gameObject.GetComponentInChildren <BarDisplay>(); weapon = gameObject.GetComponentInChildren <Weapons>(); ability = gameObject.GetComponentInChildren <Ability>(); interaction = gameObject.GetComponentInChildren <Interaction>(); beastiary = gameObject.GetComponentInChildren <Beastiary>(); progress = gameObject.GetComponentInChildren <Progress>(); buttonManager = gameObject.GetComponentInChildren <ButtonManager>(); warp = gameObject.GetComponentInChildren <Warp>(); start = gameObject.GetComponentInChildren <StarMenu>(); }