Пример #1
0
 void Start()
 {
     player = gameObject.GetComponentInParent<GuyMove>();
 }
Пример #2
0
 void Start()
 {
     player = gameObject.GetComponentInParent <GuyMove>();
 }
Пример #3
0
 // Use this for initialization
 void Start()
 {
     currentHealth = startingHealth;
     rigid_body = GetComponentInParent<Rigidbody>();
     guy = gameObject.GetComponentInParent<GuyMove>();
 }
Пример #4
0
 // Use this for initialization
 void Start()
 {
     currentHealth = startingHealth;
     rigid_body    = GetComponentInParent <Rigidbody>();
     guy           = gameObject.GetComponentInParent <GuyMove>();
 }