private void Awake() { rb = GetComponent <Rigidbody>(); state = GetComponent <state_script>(); die += stopMoving; sc = GetComponent <SphereCollider>(); }
// Use this for initialization void Start() { timer = 0; tuner = min_tuner_value; state = GetComponent <state_script>(); rb = GetComponent <Rigidbody>(); cam = FindObjectOfType <cam_shake>(); audio = FindObjectOfType <audio_management>(); }
private void Awake() { state = GetComponent <state_script>(); audio = FindObjectOfType <audio_management>(); collided = false; }
// Use this for initialization void Start() { state = GetComponent <state_script>(); }