Beispiel #1
0
 void Start()
 {
     _camera           = Camera.main;
     _prevCameraBounds = _camera.OrthographicBounds();
     _rigidBody        = GetComponent <Rigidbody2D>();
     _animator         = GetComponent <SpineRessiAnimator>();
 }
 void Start()
 {
     Animator            = GetComponent <SpineRessiAnimator>();
     Movement            = GetComponent <RessiAutoMovement>();
     Communication       = new RessiCommunication(this);
     TouchInteractions   = Object.FindObjectOfType <TouchInteractions>();
     LetterProficiencies = GameStateManager.Instance.State.LetterProficiency.ToArray();
 }
    void Start()
    {
        _animator       = GameObject.FindObjectOfType <SpineRessiAnimator>();
        _cameraMovement = GameObject.FindObjectOfType <CameraMovement>();
        var button       = GetComponentInChildren <SpriteRenderer>();
        var interactions = GetComponent <TouchInteractions>();

        interactions.OverrideInputChain(new ButtonTouchInteraction(button, OnStart), new TouchRessiInteraction());
    }
Beispiel #4
0
 void FinishGesture()
 {
     _interactionInProgress = false;
     _ressi.StopCuddling();
     _ressi = null;
     _animationController = null;
     _isStroking          = false;
     _totalMovement       = 0;
 }
Beispiel #5
0
 void StartCuddling(SpineRessiAnimator ressi)
 {
     _ressi = ressi;
     _interactionInProgress = true;
     _animationController   = ressi.StartCuddle();
 }
Beispiel #6
0
 public CuddleEvent(SpineRessiAnimator ressi, string colliderName, Touch2 touch)
 {
     Ressi        = ressi;
     ColliderName = colliderName;
     Touch        = touch;
 }