Exemplo n.º 1
0
 private void InstallAvaterView()
 {
     avatarView.Init(characterMono);
     avatarView.BindingContext = new AvatarViewModel();
     avatarView.BindingContext.Modify(characterMono.HeroModel);
     characterMono.avatarViewModel = avatarView.BindingContext;
 }
Exemplo n.º 2
0
    public void OnUniverseObjectAdded(UniverseObject universeObject)
    {
        if (universeObject is UniverseEngine.Avatar)
        {
            avatarView = universeFactory.GetAvatar();
            avatarView.Init((UniverseEngine.Avatar)universeObject, this);

            tilemapObjectViews.Add(avatarView);
        }
        else if (universeObject is UniverseEngine.Ship)
        {
            shipView = universeFactory.GetShip();
            shipView.Init((UniverseEngine.Ship)universeObject, this);

            tilemapObjectViews.Add(shipView);
        }
    }
Exemplo n.º 3
0
 private void InstallAvaterView()
 {
     avatarView.Init(characterMono);
 }