示例#1
0
    //    private AI ai = new AI(); //for debug
    void Awake()
    {
        sound = (Sound)FindObjectOfType(typeof(Sound));
        graphicalEffectFactory = (GraphicalEffectFactory)FindObjectOfType(typeof(GraphicalEffectFactory));
        networkInterface = (NetworkInterface)FindObjectOfType(typeof(NetworkInterface));

        if (sound == null){
            Debug.LogError("sound-object not found");
        }
        if (graphicalEffectFactory == null){
            Debug.LogError("graphicalEffectFactory-object not found");
        }
        Console.Init(this);
    }
 protected override void Start()
 {
     base.Start();
     graphicalEffects = (GraphicalEffectFactory)FindObjectOfType(typeof(GraphicalEffectFactory));
     tutorialPropagator = Tutorial.GetTutorialDescription(this, control);
     scenarioWindow = new ScenarioDescriptionGUI(tutorialPropagator);
     conditionChecker = tutorialPropagator.GetCondition();
     gui = GameGUIFactory.Create(tutorialPropagator.GetGUIOptions(),(IGUIMessages)this);
     tutorialPropagator.Start();
 }