コード例 #1
0
ファイル: UIFab.cs プロジェクト: exodrifter/orchid
    void Start()
    {
        m_moneyEffect = gameObject.AddComponent <MoneyEffect>();
        m_moneyEffect.SetParent(GameObject.Find("counter-money").transform);
        m_moneyEffect.SetOffset(new Vector2(-7, -20));

        m_unitQueueUI = GameObject.Find("unit-queue").GetComponent <UnitQueuUI>();
    }
コード例 #2
0
    void Start()
    {
        m_gptTimer.Reset();

        m_moneyEffect = gameObject.AddComponent <MoneyEffect>();
        m_moneyEffect.SetParent(GameObject.Find("counter-money").transform);
        m_moneyEffect.SetOffset(new Vector2(-7, -20));

        // Reset the money
        m_playerMoney = PLAYER_START_GOLD;
        m_enemyMoney  = ENEMY_START_GOLD;

        // Reset AI variables
        m_playerCities  = new List <PointCity>();
        m_playerFabs    = new List <PointFab>();
        m_playerWonders = new List <PointWonder>();

        m_enemyCities  = new List <PointCity>();
        m_enemyFabs    = new List <PointFab>();
        m_enemyWonders = new List <PointWonder>();
    }