Example #1
0
        private void OnInitialized(object sender, EventArgs args)
        {
#if NOESIS
            ExpeditionModeMVVM data = new ExpeditionModeMVVM();

            foreach (GameObject go in ExpeditionManager.Persos)
            {
                data.Add(new CharacterMVVM(go.GetComponent <CharacterScript>()));
            }

            DataContext = data;
#endif
        }
        private void OnInitialized(object sender, EventArgs args)
        {
            ExpeditionModeMVVM data = new ExpeditionModeMVVM();

            data.Add(new CharacterMVVM(true, 150, 150, 2));
            data.Add(new CharacterMVVM(false, 150, 125, 1));
            data.Add(new CharacterMVVM(true, 150, 100, 0));
            data.Add(new CharacterMVVM(false, 150, 75, 2));
            data.Add(new CharacterMVVM(true, 150, 50, 1));
            data.Add(new CharacterMVVM(false, 150, 25, 0));
            data.Add(new CharacterMVVM(true, 150, 1, 2));

            data.Add(new CharacterMVVM(true, 150, 75, 2));
            data.Add(new CharacterMVVM(true, 150, 75, 2));

            DataContext = data;
        }