Ejemplo n.º 1
0
    // create a list of questions asked


    public void Awake()
    {
        if (Instance == null)
        {
            Instance        = this;
            this.characters = CharacterLibrary.LoadCharacters();
            ProfileLibrary.AssignProfiles(this.characters.Values.ToList());
            CharacterLibrary.AssignAffinities(characters.Values.ToList());
            debugs            = new InspectorCharacter[7];
            this.rounds       = new MurderProfile[3];
            this.currentRound = 0;

            askedQuestions = new List <AskedQuestion>();
        }
    }
Ejemplo n.º 2
0
    /// <summary>
    /// デバッグ用にとりあえずデータをでっち上げる
    /// </summary>
    public void CreateTemplateData()
    {
        CharacterLibrary lib = GameObject.Find("Library").GetComponent <CharacterLibrary>();

        players = new BetterList <Player>();

        for (int i = 0; i < 2; i++)
        {
            Player     p     = new Player(i);
            GameObject chara = lib.reimu;
            p.character = chara;
            GamePad pad = new GamePad(i);
            p.gamepad = pad;
            p.team    = new Team((TEAMCODE)i);
            players.Add(p);
        }
    }