Example #1
0
    void Awake()
    {
        _newPosition = transform.position.AsVector2();
        _oldPosition = _newPosition;
        _vely        = 5 * GRAVITY;

        _snap       = GetComponent <SpiderSnap>();
        _blobBinder = GetComponentInChildren <BlobBinder>();
        _anim       = GetComponentInChildren <Animator>();
    }
Example #2
0
    void Awake()
    {
        _newPosition = transform.position.AsVector2();
        _oldPosition = _newPosition;
        _vely = 5*GRAVITY;

        _snap = GetComponent<SpiderSnap>();
        _blobBinder = GetComponentInChildren<BlobBinder>();
        _anim = GetComponentInChildren<Animator>();
    }