public void SpawnCowboys() { PeopleINPC mCowboy; PeopleINPC mCowboyNVG; PeopleINPC mCowboyBun; PeopleINPC mCowboyMoney; PeopleINPC mCowboyCleats; factory = FactoryProducer.GetFactory(FactoryType.People); mCowboy = factory.GetPeople(PeopleNPCType.Cowboy); mCowboyNVG = new NVGDecorator(factory.GetPeople(PeopleNPCType.Cowboy)); mCowboyBun = new BunDecorator(factory.GetPeople(PeopleNPCType.Cowboy)); mCowboyCleats = new CleatsDecorator(factory.GetPeople(PeopleNPCType.Cowboy)); mCowboyMoney = new MoneyDecorator(factory.GetPeople(PeopleNPCType.Cowboy)); List <int> mCowboystats = mCowboy.GetStats(); List <int> mCowboyNVGstats = mCowboyNVG.GetStats(); List <int> mCowboyBunstats = mCowboyBun.GetStats(); List <int> mCowboyMoneystats = mCowboyMoney.GetStats(); List <int> mCowboyCleatsstats = mCowboyCleats.GetStats(); Debug.Log("Person Discription, Stats, and Speech: " + mCowboy.GetDescription() + " | Intel: " + mCowboystats[0] + " Strength: " + mCowboystats[1] + " | " + mCowboy.Speak()); Debug.Log("Person Discription, Stats, and Speech: " + mCowboyNVG.GetDescription() + " | Intel: " + mCowboyNVGstats[0] + " Strength: " + mCowboyNVGstats[1] + " | " + mCowboyNVG.Speak()); Debug.Log("Person Discription, Stats, and Speech: " + mCowboyBun.GetDescription() + " | Intel: " + mCowboyBunstats[0] + " Strength: " + mCowboyBunstats[1] + " | " + mCowboyBun.Speak()); Debug.Log("Person Discription, Stats, and Speech: " + mCowboyCleats.GetDescription() + " | Intel: " + mCowboyCleatsstats[0] + " Strength: " + mCowboyCleatsstats[1] + " | " + mCowboyCleats.Speak()); Debug.Log("Person Discription, Stats, and Speech: " + mCowboyMoney.GetDescription() + " | Intel: " + mCowboyMoneystats[0] + " Strength: " + mCowboyMoneystats[1] + " | " + mCowboyMoney.Speak()); }
public void SpawnWeenies() { PeopleINPC mWeenie; PeopleINPC mWeenieNVG; PeopleINPC mWeenieBun; PeopleINPC mWeenieMoney; PeopleINPC mWeenieCleats; factory = FactoryProducer.GetFactory(FactoryType.People); mWeenie = factory.GetPeople(PeopleNPCType.Weenie); mWeenieNVG = new NVGDecorator(factory.GetPeople(PeopleNPCType.Weenie)); mWeenieBun = new BunDecorator(factory.GetPeople(PeopleNPCType.Weenie)); mWeenieCleats = new CleatsDecorator(factory.GetPeople(PeopleNPCType.Weenie)); mWeenieMoney = new MoneyDecorator(factory.GetPeople(PeopleNPCType.Weenie)); List <int> mWeeniestats = mWeenie.GetStats(); List <int> mWeenieNVGstats = mWeenieNVG.GetStats(); List <int> mWeenieBunstats = mWeenieBun.GetStats(); List <int> mWeenieMoneystats = mWeenieMoney.GetStats(); List <int> mWeenieCleatsstats = mWeenieCleats.GetStats(); Debug.Log("Person Discription, Stats, and Speech: " + mWeenie.GetDescription() + " | Intel: " + mWeeniestats[0] + " Strength: " + mWeeniestats[1] + " | " + mWeenie.Speak()); Debug.Log("Person Discription, Stats, and Speech: " + mWeenieNVG.GetDescription() + " | Intel: " + mWeenieNVGstats[0] + " Strength: " + mWeenieNVGstats[1] + " | " + mWeenieNVG.Speak()); Debug.Log("Person Discription, Stats, and Speech: " + mWeenieBun.GetDescription() + " | Intel: " + mWeenieBunstats[0] + " Strength: " + mWeenieBunstats[1] + " | " + mWeenieBun.Speak()); Debug.Log("Person Discription, Stats, and Speech: " + mWeenieCleats.GetDescription() + " | Intel: " + mWeenieCleatsstats[0] + " Strength: " + mWeenieCleatsstats[1] + " | " + mWeenieCleats.Speak()); Debug.Log("Person Discription, Stats, and Speech: " + mWeenieMoney.GetDescription() + " | Intel: " + mWeenieMoneystats[0] + " Strength: " + mWeenieMoneystats[1] + " | " + mWeenieMoney.Speak()); }