void Start() { unwrapIndicator.fillAmount = 0; oilDerrick.SetActive(false); turretGraphics.SetActive(false); DebugText.SetOnionCount(FindObjectsOfType <MetalOnion>().Length.ToString()); tendrils.AddRange(GetComponentsInChildren <Tendril> ()); }
void Start() { startPos = transform.position; unwrapIndicator.fillAmount = 0; #if UNITY_EDITOR brownianRadius = 0.03f; timeToSeekPoints = 0.5f; autoDestructTimer = 0.5f; #endif InitBrownianPoints(); if (stateOnStart) { SetState(state); } DebugText.SetOnionCount(FindObjectsOfType <MetalOnion>().Length.ToString()); }