Example #1
0
    void Awake()
    {
        moveCheckResults = new RaycastHit2D[1];

        MoveTransition.AttachMonoBehaviour(this);
        MoveTransition.Value = transform.position;
    }
Example #2
0
    public void Initialize(FishType type)
    {
        ScaleTransition.AttachMonoBehaviour(this);
        PositionTransition.AttachMonoBehaviour(this);

        FishType         = type;
        FishImage.sprite = FishSpriteDisambiguator.GetSpriteByType(type);

        ScaleTransition.FlashFromTo(0, 1);
    }
Example #3
0
    void Awake()
    {
        buildZoneCheckResults = new Collider2D[1];

        DummyFollowTransition.AttachMonoBehaviour(this);
        ScaleTransition.AttachMonoBehaviour(this);
        ToPlatformingUITransition.AttachMonoBehaviour(this);

        ScaleTransition.Value = 0;
    }
Example #4
0
    void Start()
    {
        CameraTrackingPosition.Value = transform.position;

        sceneChangeMovementTransition = new TransitionableVector2();
        sceneChangeMovementTransition.AttachMonoBehaviour(this);
        sceneChangeMovementTransition.FlashFromTo(-sceneTransitionOffset, Vector2.zero, SceneLoadTransitionTime, SceneLoadEase);

        SceneLoadFovTransition.AttachMonoBehaviour(this);
        SceneLoadFovTransition.FlashFromTo(FlattenedFov, NormalFov);

        SceneUnloadFovTransition.AttachMonoBehaviour(this);
    }
Example #5
0
    IEnumerator Start()
    {
        MovementTransition.AttachMonoBehaviour(this);
        MovementTransition.Value = StartPoint.position;

        bool @switch = false;

        while (true)
        {
            MovementTransition.StartTransitionTo((@switch ? StartPoint : EndPoint).position);
            @switch = !@switch;

            yield return(new WaitWhile(() => MovementTransition.Transitioning));
        }
    }
Example #6
0
 void Start()
 {
     startPosition = transform.position;
     DistanceTransition.AttachMonoBehaviour(this);
 }