Beispiel #1
0
 // Start is called before the first frame update
 private void Start()
 {
     ang        = 5;
     father     = GameObject.Find("Father").GetComponent <FatherController>();
     cooldown   = 2.3f;
     collider   = GetComponent <CapsuleCollider>();
     model      = transform.GetChild(1);
     anim       = model.GetComponent <Animator>();
     _rigidbody = GetComponent <Rigidbody>();
     inst       = transform.GetChild(0).gameObject;
     source     = GetComponent <AudioSource>();
 }
Beispiel #2
0
 void Start()
 {
     father = GameObject.Find("Father").GetComponent <FatherController>();
 }