Example #1
0
    void Start()
    {
        ModeData modeData = GameObject.Find("ModeData").GetComponent <ModeData>();

        flag  = modeData.GetComponent <ModeData>().IsSolo(); // 的な感じ?
        level = modeData.computerLevel;
    }
Example #2
0
    void Start()
    {
        ModeData modeData = GameObject.Find("ModeData").GetComponent <ModeData>();

        flag        = modeData.GetComponent <ModeData>().IsSolo(); // 的な感じ?
        level       = modeData.computerLevel;
        player      = modeData.player;
        numOfPlayer = modeData.numOfPlayer;
        numOfComs   = 4 - numOfPlayer;
    }
Example #3
0
    void Start()
    {
        ModeData modeData = GameObject.Find("ModeData").GetComponent <ModeData>();

        flag        = modeData.GetComponent <ModeData>().IsSolo(); // 的な感じ?
        level       = modeData.computerLevel;
        player      = modeData.player;
        numOfPlayer = modeData.numOfPlayer;
        numOfComs   = 4 - numOfPlayer;

        /*
         * if (numOfPlayer == 1) computerFlags = new bool[4] { false, true, true, true };
         * if (numOfPlayer == 2) computerFlags = new bool[4] { false, true, false, true };
         * if (numOfPlayer == 3) computerFlags = new bool[4] { false, false, false, true };
         * if (numOfPlayer == 4) computerFlags = new bool[4] { false, false, false, false };
         */
    }