public BattleMissile CreateMissile(MissileLayout layout, MagicReleaser releaser) { var view = this.View.CreateMissile(releaser.View, layout); var missile = new BattleMissile(BattleMissileControllor, releaser, view, layout); this.JoinElement(missile); return(missile); }
public ISerializerable CreateMissile(BattleMissile missile) { var createNotify = new Proto.Notify_CreateMissile { Index = missile.Index, Position = missile.View.Transform.position.ToV3(), ResourcesPath = missile.Layout.resourcesPath, Speed = missile.Layout.speed, ReleaserIndex = missile.Releaser.Index, formBone = missile.Layout.fromBone, toBone = missile.Layout.toBone, offset = missile.Layout.offset.ToV3() }; return(createNotify); }