Example #1
0
    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;
    }
Example #2
0
 // Initialization
 void Start()
 {
     serialController = GameObject.Find("SerialController").GetComponent <SerialControllerBinario>();
 }