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