private void Awake()
    {
        anotherScript    = GetComponent <AnotherScript>();
        yetAnotherScript = GetComponent <YetAnotherScript>();

        //get box collider
        boxCol = otherGameObject.GetComponent <BoxCollider>();
    }
 void Awake()
 {
     anotherScript    = GetComponent <AnotherScript>();
     yetAnotherScript = otherGameObject.GetComponent <YetAnotherScript>();
     boxCol           = otherGameObject.GetComponent <BoxCollider>();
 }
Пример #3
0
 // Use this for initialization
 private void Awake()
 {
     anotherScript    = GetComponent <AnotherScript>();
     yetAnotherscript = othergameobject.GetComponent <YetAnotherScript>();
     _boxCollider     = othergameobject.GetComponent <BoxCollider>();
 }
Пример #4
0
 void Awake()
 {
     anotherScript    = GetComponent <AnotherScript>();
     yetAnotherScript = otherGameObject.GetComponent <YetAnotherScript>();
 }