コード例 #1
0
    // Use this for initialization
    void Start()
    {
        resources = GameObject.Find("Resources");
        rm        = resources.GetComponent <ResourcesManager> ();
        turns     = GameObject.Find("Turns");
        ts        = turns.GetComponent <TurnsScript> ();
        //earthPanel = GameObject.Find ("EarthPanel");
        //es = earthPanel.GetComponent<ElementScript> ();
        logPanel = GameObject.Find("LogPanel");
        ls       = logPanel.GetComponent <LogScript> ();
        stage    = GameObject.Find("Stage");
        ss       = stage.GetComponent <StageScript> ();

        buildingSelection = -1;
    }
コード例 #2
0
    // Use this for initialization
    void Start()
    {
        stage     = GameObject.Find("Stage");
        ss        = stage.GetComponent <StageScript> ();
        turns     = GameObject.Find("Turns");
        ts        = turns.GetComponent <TurnsScript> ();
        resources = GameObject.Find("Resources");
        rm        = resources.GetComponent <ResourcesManager> ();


        P1ResultLog       = transform.Find("P1Result").GetComponent <Text> ();
        P2ResultLog       = transform.Find("P2Result").GetComponent <Text> ();
        eventLog          = transform.Find("EventLog").GetComponent <Text> ();
        P1ResultLog.color = new Color(0, 0, 1, 1);
        P2ResultLog.color = new Color(1, 0, 0, 1);
        eventLog.color    = new Color(0, 1, 0, 1);
    }
コード例 #3
0
    // Use this for initialization
    void Start()
    {
        stage = 1;

        buildingPanel = GameObject.Find("BuildingPanel");
        //es = buildingPanelP1.GetComponent<ElementScript> ();

        //buildingPanelP2 = GameObject.Find ("BuildingPanelP2");
        //bp = buildingPanelP2.GetComponent<BuildingScript> ();

        aiPanel = GameObject.Find("AIPanel");
        ae      = aiPanel.GetComponent <AIEventScript> ();

        turns = GameObject.Find("Turns");
        ts    = turns.GetComponent <TurnsScript> ();

        introPanel = GameObject.Find("IntroPanel");
    }