Ejemplo n.º 1
0
    //We apply the object on the chosen target
    private void PlaceOnTarget()
    {
        transform.parent = _currentTarget.transform;
        SetWantedTransform(Vector3.zero, Quaternion.identity, Vector3.one);
        enabled = false;
        _currentTarget.Complete();
        Placed = true;

        LerpTransform(null, _currentTarget);
        Messenger.Broadcast(ObjectPlacedMessage);
    }