public void DisplayActors() { actors = new List <GameObject>(); foreach (string key in cs.actorIDMap.Keys) { CutsceneActorPositionData data = cs.actorIDMap[key]; GameObject tempActor = Instantiate <GameObject>(actorAnimation, spawnPoint); actors.Add(tempActor); tempActor.transform.position = Globals.GridToWorld(data.position.X, data.position.Y); string animID = Globals.campaign.contentLibrary.actorDB.GetData(data.actorID).animationController; Globals.AddAnimationController(animID, tempActor); uidGameObjectMap.Add(key, tempActor); } }
public void AddActor(CutsceneActorPositionData data) { actorIDMap.Add(data.uid, data); }