Example #1
0
        protected override void Start()
        {
            thrust     = new StatCalculator(initThrust);
            thrustHeat = new StatCalculator(initThrustHeat);
            maxSpeed   = new StatCalculator(initMaxSpeed);
            rotation   = new StatCalculator(initRotation);
            brake      = new StatCalculator(initBrake);
            brakeHeat  = new StatCalculator(initBrakeHeat);

            health           = new PointBasedStat(initHealth, initHealth);
            shield           = new PointBasedStat(initShield, initShield);
            heat             = new PointBasedStat(0f, initHeat);
            basicAttackSpeed = new PointBasedStat(0f, initBasicAttackSpeed);

            base.Start();
        }
Example #2
0
        protected virtual void Start()
        {
            myRigidbody2D = GetComponent <Rigidbody2D>();

            UICooldown = new PointBasedStat(0f, 1.5f);
        }