private void Awake()
 {
     rb    = GetComponent <Rigidbody>();
     state = GetComponent <state_script>();
     die  += stopMoving;
     sc    = GetComponent <SphereCollider>();
 }
Exemple #2
0
 // 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;
 }
Exemple #4
0
 // Use this for initialization
 void Start()
 {
     state = GetComponent <state_script>();
 }