private void Awake() { var contextHolder = GetComponentInChildren <ContextHolder>(); if (contextHolder) { contextHolder.Context = new ActorUIContext(); _contextUI = (ActorUIContext)contextHolder.Context; } else { Debug.LogError("[Actor] contextHolder not found"); } }
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; }
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)); }