// Use this for initialization
 void Start()
 {
     soap = GameObject.FindWithTag("Player");
     sm   = soap.GetComponent <SoapMovement>();
 }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     coll          = GetComponent <Collider>();
     sm            = GameObject.FindWithTag("Player").GetComponent <SoapMovement>();
     bubbleTrigger = GameObject.Find("BubbleTrigger");
 }