Esempio n. 1
0
        public void Launch(Agent agent, ParametricFirearm pf, PFProjectileData data)
        {
            this.firingAgent = agent;
            this.firingPF    = pf;

            this.Read(data);

            ApplyStartingTrajectory();
        }
Esempio n. 2
0
 void Awake()
 {
     this.Meta    = new PFMetaData();
     this.Dynamic = new PFDynamicData();
     if (this.Projectile == null)
     {
         this.Projectile = CreateInstance <PFProjectileData>();
     }
     this.RateOfFire = new PFRateOfFireData();
     this.Multishot  = new PFMultishotData();
     this.ChargeTime = new PFChargeTimeData();
 }
Esempio n. 3
0
        protected override void OnRead(GrandmaComponentData data)
        {
            base.OnRead(data);

            projData = data as PFProjectileData;
        }