private void Start() { myTransform = transform; myRigidbody2D = GetComponent <Rigidbody2D>(); mySpriteRenderer = GetComponent <SpriteRenderer>(); myCollider2D = GetComponent <Collider2D>(); serialController = GameObject.Find("SerialController").GetComponent <SerialController>(); serialControllerBinario = GameObject.Find("SerialControllerBinario").GetComponent <SerialControllerBinario>(); originalPositon = myTransform.position; isInitialized = true; }
// Initialization void Start() { serialController = GameObject.Find("SerialController").GetComponent <SerialControllerBinario>(); }