void InstantiateContactGroup(LContactGroup group) { foreach (LContact contact in group.Elements) { InstantiateContact(contact); } }
protected override void FetchReferences() { base.FetchReferences(); character = LCharacterController.Instance; contacts = character.IContacts; InstantiateContactGroup(contacts); }
LContactGroup loadContacts(string jsonPath) { LContactGroup contacts = json.LoadContacts(jsonPath); foreach (LContact contact in contacts.Elements) { contact.SpriteContactImage = loadCharacterSprite(contact.SpriteName); } return(contacts); }
protected override void FetchReferences() { base.FetchReferences(); json = LJsonController.Instance; contacts = loadContacts(JsonPath); }