Ejemplo n.º 1
0
 private void begin(InteractionState interactionState, InteractionDefinition.Track track, int trackIndex)
 {
     interaction  = interactionState;
     Track        = track;
     TrackIndex   = trackIndex;
     Action       = getNextAction();
     base.enabled = true;
 }
Ejemplo n.º 2
0
        public InteractionState(InteractionDefinition definition, GameObject[] actorsGO)
        {
            int num = definition.Tracks.Length;

            Definition        = definition;
            Actors            = new Actor[num];
            syncPointsWaiting = new int[Definition.SyncPoints.Length];
            for (int i = 0; i < num; i++)
            {
                InteractionDefinition.Track track = definition.Tracks[i];
                Actor actor = actorsGO[i].AddComponent <Actor>();
                Actors[i] = actor;
                actor.begin(this, track, i);
            }
        }