private void Awake() { myPC2D = GetComponent <PolygonCollider2D>(); myPC2D.enabled = false; myRB = GetComponent <Rigidbody2D>(); sm = FindObjectOfType <SonMovement>(); mm = FindObjectOfType <MotherMovement>(); }
private void Init(Scene current, Scene next) { sm = FindObjectOfType <SonMovement> (); mm = FindObjectOfType <MotherMovement> (); sm?.fadeIn(); mm?.fadeIn(); interaction = false; }
private void Start() { io = GetComponent <InteractionObject>(); sm = FindObjectOfType <SonMovement>(); mm = FindObjectOfType <MotherMovement>(); }
// Start is called before the first frame update private void Awake() { sm = FindObjectOfType <SonMovement>(); mm = FindObjectOfType <MotherMovement>(); }