Ejemplo n.º 1
0
    private void Awake()
    {
        var contextHolder = GetComponentInChildren <ContextHolder>();

        if (contextHolder)
        {
            contextHolder.Context = new ActorUIContext();
            _contextUI            = (ActorUIContext)contextHolder.Context;
        }
        else
        {
            Debug.LogError("[Actor] contextHolder not found");
        }
    }
Ejemplo n.º 2
0
 private void SetUpContexts()
 {
     AddContext(actor3DContext = new Actor3DContext(game, this));
     AddContext(actor2DContext = new Actor2DContext(game, this));
     AddContext(actorUIContext = new ActorUIContext(game, this));
     AddContext(facetContext = new FacetContext(game, this));
     AddContext(new CameraContext(game, this));
     game.SimulationSelectionChanged += game_SimulationSelectionChanged;
 }
Ejemplo n.º 3
0
 private void SetUpContexts()
 {
     AddContext(actor3DContext = new Actor3DContext(game, this));
     AddContext(actor2DContext = new Actor2DContext(game, this));
     AddContext(actorUIContext = new ActorUIContext(game, this));
     AddContext(facetContext = new FacetContext(game, this));
     AddContext(new CameraContext(game, this));
 }