Пример #1
0
 private void Start()
 {
     rb  = this.GetComponent <Rigidbody2D>();
     sfx = this.GetComponent <ObjectSoundController>();
     objectSyncController = GameObject.Find("ObjectSyncManager").GetComponent <ObjectSyncController>();
 }
Пример #2
0
 // Start is called before the first frame update
 void Start()
 {
     middlePosition = this.transform.parent.position;
     // 추후 수정
     objectSyncController = GameObject.Find("ObjectSyncManager").GetComponent <ObjectSyncController>();
 }