public obj.MissileVisual CreateMissileBattleVisual(data.MissileInstance fromInstance, battle.Context context, obj.Types.Side side) { GameObject visualGo = GameObject.Instantiate(fromInstance.BattleVisual) as GameObject; obj.MissileVisual visual = visualGo.GetComponent <obj.MissileVisual> (); visual.Init(context, fromInstance, side); return(visual); }
public void ReleaseMissile(data.MissileInstance missileInstance, obj.Types.Side side) { obj.MissileVisual missileVisual = BattleFactory.CreateMissileBattleVisual(missileInstance, new Context(this), side); missileVisual.Init(); }