Exemplo n.º 1
0
    private void PushPhase(string phaseID)
    {
        System.Runtime.Remoting.ObjectHandle handle = System.Activator.CreateInstance(_appProxyConfig.m_assemblyPrimary, phaseID);
        IPhase phase = handle.Unwrap() as IPhase;

        if (LoggingManager.Instance.Filter(LoggingManager.Domain.Phases))
        {
            Debug.Log("(AppManager) Entering phase: " + phaseID + " (" + _phases.Count + ")");
        }
        _phases.Add(phase);
        phase.Setup(this);
    }
Exemplo n.º 2
0
    private void Setup()
    {
        userInterface  = GameObject.Find("UserInterface").GetComponent <IUserInterface>();
        battlePhase    = new BattlePhase();
        itemStorePhase = new ItemStorePhase();
        itemManager    = new ItemManager();
        playerStatus   = new PlayerStatus();

        userInterface.Setup(itemManager);
        battlePhase.Setup(userInterface, itemManager, playerStatus);
        itemStorePhase.Setup(userInterface, itemManager, playerStatus);
        itemManager.Setup(playerStatus);
    }