예제 #1
0
    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);
        }
    }
예제 #2
0
 public void AddActor(CutsceneActorPositionData data)
 {
     actorIDMap.Add(data.uid, data);
 }