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); }
public void ReleaseCharacter(data.CharacterInstance charInstance, obj.Types.Side side) { obj.CharacterVisual charVisual = BattleFactory.CreateCharacterBattleVisual(charInstance, new Context(this), side); charVisual.Init(); }