Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }