// Update is called once per frame protected void Update() { foreach (Action action in waitingAdd) { actions [action.GetInstanceID()] = action; } waitingAdd.Clear(); foreach (KeyValuePair <int, Action> key in actions) { Action action = key.Value; if (action.destroy) { Debug.Log("destroy"); waitingDelete.Add(key.Key); } else if (action.enable) { ActionAdapter PA = new ActionAdapter(action); PA.update(); } } foreach (int key in waitingDelete) { Action action = actions [key]; waitingDelete.Remove(key); DestroyObject(action); } waitingDelete.Clear(); }
void CreateAdapter(BIWCompleteAction action) { ActionAdapter instanciatedAdapter = Instantiate(adapter, contentPanelTransform).GetComponent <ActionAdapter>(); instanciatedAdapter.SetContent(action); instanciatedAdapter.OnActionSelected += ActionSelected; actionList.Add(instanciatedAdapter); }
static CommonLoggingTests() { var moduleWeaver = new ModuleWeaver(); assembly = moduleWeaver.ExecuteTestRun( assemblyPath: "AssemblyToProcess.dll", ignoreCodes: new[] { "0x80131869" }).Assembly; actionAdapter = new ActionAdapter(); LogManager.Adapter = actionAdapter; }
void Start() { SSDirector director = SSDirector.getInstance(); director.currentSceneController = this; diskFactory = Singleton <DiskFactory> .Instance; actionManager = gameObject.AddComponent <PhyFlyActionManager>() as ActionAdapter; actionManager.setRound(round); userGUI = gameObject.AddComponent <UserGUI>() as UserGUI; }
public CommonLoggingTests() { AppDomainAssemblyFinder.Attach(); beforeAssemblyPath = Path.GetFullPath(@"..\..\..\CommonLoggingAssemblyToProcess\bin\Debug\CommonLoggingAssemblyToProcess.dll"); #if (!DEBUG) beforeAssemblyPath = beforeAssemblyPath.Replace("Debug", "Release"); #endif afterAssemblyPath = WeaverHelper.Weave(beforeAssemblyPath); assembly = Assembly.LoadFile(afterAssemblyPath); actionAdapter = new ActionAdapter(); LogManager.Adapter = actionAdapter; }
void Awake() { director = Director.getInstance(); director.currentSceneController = this; actionAdapter = new ActionAdapter(); actionManager = gameObject.AddComponent <ActionManager>(); ufoFactory = Singleton <UFOFactory> .Instance; shooter = gameObject.AddComponent <Shooter>(); levelManager = gameObject.AddComponent <LevelManager>(); LoadResources(); gameState = GameState.NotStarted; }
public CommonLoggingTests() { AppDomainAssemblyFinder.Attach(); beforeAssemblyPath = Path.GetFullPath(@"..\..\..\CommonLoggingAssemblyToProcess\bin\Debug\CommonLoggingAssemblyToProcess.dll"); #if (!DEBUG) beforeAssemblyPath = beforeAssemblyPath.Replace("Debug", "Release"); #endif afterAssemblyPath = WeaverHelper.Weave(beforeAssemblyPath); assembly = Assembly.LoadFile(afterAssemblyPath); actionAdapter = new ActionAdapter { }; LogManager.Adapter = actionAdapter; }
public CommonLoggingTests() { #if (PORTABLE) var path = Path.Combine(TestContext.CurrentContext.TestDirectory, @"..\..\..\CommonLoggingAssemblyToProcessPortable\bin\Debug\CommonLoggingAssemblyToProcessPortable.dll"); #else var path = Path.Combine(TestContext.CurrentContext.TestDirectory, @"..\..\..\CommonLoggingAssemblyToProcess\bin\Debug\CommonLoggingAssemblyToProcess.dll"); #endif AppDomainAssemblyFinder.Attach(); beforeAssemblyPath = Path.GetFullPath(path); #if (!DEBUG) beforeAssemblyPath = beforeAssemblyPath.Replace("Debug", "Release"); #endif afterAssemblyPath = WeaverHelper.Weave(beforeAssemblyPath); assembly = Assembly.LoadFile(afterAssemblyPath); actionAdapter = new ActionAdapter(); LogManager.Adapter = actionAdapter; }
public CommonLoggingTests() { #if (PORTABLE) var path = Path.Combine(TestContext.CurrentContext.TestDirectory, @"..\..\..\CommonLoggingAssemblyToProcessPortable\bin\Debug\CommonLoggingAssemblyToProcessPortable.dll"); #else var path = Path.Combine(TestContext.CurrentContext.TestDirectory,@"..\..\..\CommonLoggingAssemblyToProcess\bin\Debug\CommonLoggingAssemblyToProcess.dll"); #endif AppDomainAssemblyFinder.Attach(); beforeAssemblyPath = Path.GetFullPath(path); #if (!DEBUG) beforeAssemblyPath = beforeAssemblyPath.Replace("Debug", "Release"); #endif afterAssemblyPath = WeaverHelper.Weave(beforeAssemblyPath); assembly = Assembly.LoadFile(afterAssemblyPath); actionAdapter = new ActionAdapter(); LogManager.Adapter = actionAdapter; }
public ActionLog(ActionAdapter actionAdapter) { this.actionAdapter = actionAdapter; }
public void ActionSelected(BIWCompleteAction action, ActionAdapter adapter) { OnActionSelected?.Invoke(action); }
public ActionLog(ActionAdapter actionAdapter) { this.actionAdapter = actionAdapter; }