Example #1
0
        void Awake()
        {
            if (Settings == null)
            {
                BallisticSettings[] bsettings = Resources.FindObjectsOfTypeAll <BallisticSettings>();
                if (bsettings.Length > 0)
                {
                    Settings = bsettings[0];
                }
            }

            g      = Physics.gravity.y;
            myPool = PoolManager.instance;
        }
Example #2
0
        //-----------------------------------------------------------------------

        void Awake()
        {
            myPool = PoolManager.instance;

            bulletHandler = BulletHandler.instance;
            if (bulletHandler == null)
            {
                return;
            }

            BallisticSettings bs = bulletHandler.Settings;

            if (bs != null)
            {
                Settings = bs;
            }

            RecalculatePrecalculatedValues();
        }