예제 #1
0
    public void CreateMoverFor(Transform moverParent, Transform tTransform, Vector3 startPosition, Vector3 endPosition)
    {
        Mover mover = prefabsManager.GetMover();

        mover.transform.parent        = moverParent;
        mover.transform.localPosition = startPosition;
        mover.startPosition           = startPosition;
        mover.endPosition             = endPosition;
        mover.moveTime = fallTime;
        mover.AddListener(this, FCEvent.END);

        tTransform.parent = mover.transform;
        movers.Add(mover);
    }