コード例 #1
0
    // Use this for initialization
    void Start()
    {
        units = new List <NpcController> ();

        var unitAvatar = Instantiate(unitTemplate);

        var charState = new CharState();

        charState.SetBoredom(30);
        charState.SetFatigue(20);

        NpcController controller = new NpcController()
        {
            column       = 2,
            row          = 2,
            charSheet    = new CharSheet(),
            charState    = charState,
            questManager = new QuestManager(),
            avatar       = unitAvatar
        };

        controller.Start();

        units.Add(controller);
    }