Exemple #1
0
            public obj.CharacterVisual CreateCharacterBattleVisual(data.CharacterInstance fromInstance, battle.Context context, obj.Types.Side side)
            {
                GameObject visualGo = GameObject.Instantiate(fromInstance.BattleVisual) as GameObject;

                obj.CharacterVisual visual = visualGo.GetComponent <obj.CharacterVisual> ();

                visual.Init(context, fromInstance, side);

                return(visual);
            }
Exemple #2
0
            public void ReleaseCharacter(data.CharacterInstance charInstance, obj.Types.Side side)
            {
                obj.CharacterVisual charVisual = BattleFactory.CreateCharacterBattleVisual(charInstance, new Context(this), side);

                charVisual.Init();
            }