Now, with the updated logic for the Bandit and SimpleArm classes, we can continue by configuring our scene objects. Follow these steps to create the multiple bandits:
- From the menu, select GameObject -> Create Empty. Rename the new object Arms. We are going to make a container for all the bandit arms that the bandits will share. Sharing the arms will make setting up this task much simpler.
- Select the new Arms object in the Hierarchy window, and then from the menu select GameObject -> Create Empty. This should create a new child object of Arms. Rename the new child object GoldArm.
- Select GoldArm, and set its Material and rewardValue to one of your choosing.
- With GoldArm selected, press Ctrl + D(Command +