void Awake() { if (Settings == null) { BallisticSettings[] bsettings = Resources.FindObjectsOfTypeAll <BallisticSettings>(); if (bsettings.Length > 0) { Settings = bsettings[0]; } } g = Physics.gravity.y; myPool = PoolManager.instance; }
//----------------------------------------------------------------------- void Awake() { myPool = PoolManager.instance; bulletHandler = BulletHandler.instance; if (bulletHandler == null) { return; } BallisticSettings bs = bulletHandler.Settings; if (bs != null) { Settings = bs; } RecalculatePrecalculatedValues(); }