public void setPlayerMechConfiguration(MechConfiguration mechConfiguration) { this.playerConfiguration = mechConfiguration; }
void Start() { // TODO Load mech configuratoin from previous save mechConfiguration = new MechConfiguration (); mechConfiguration.setLeftWeapon (WeaponFactory.getWeaponConfiguration(PrebuiltWeaponType.Chaingun)); mechConfiguration.setRightWeapon (WeaponFactory.getWeaponConfiguration(PrebuiltWeaponType.MissileLauncher)); updateMechConfigPanel (); // Hide any panels that might currentely be rendered if (panelsToHideOnStart != null) { for(int i = 0; i < panelsToHideOnStart.Length; i ++){ panelsToHideOnStart[i].SetActive(false); } } // Show any panels that might not be currentely rendered if (panelsToDisplayOnStart != null) { for(int i = 0; i < panelsToDisplayOnStart.Length; i ++){ panelsToDisplayOnStart[i].SetActive(true); } } }