Ejemplo n.º 1
0
    public void OnHover(Vector3 _pos, BridgeComponent _bridgeItem)
    {
        var hoveringItem = GetPersistentNearestSlot(_pos, _bridgeItem.m_thisType);

        _bridgeItem.transform.position = hoveringItem.transform.position;
    }
Ejemplo n.º 2
0
    public void OnDragRelease(Vector3 _pos, BridgeComponent _bridgeItem)
    {
        var droppedSlot = GetPersistentNearestSlot(_pos, _bridgeItem.m_thisType);

        droppedSlot.SetBridgeComponent(_bridgeItem);
    }
Ejemplo n.º 3
0
 public RopeCutConsumableTrigger(GameObject owner, BridgeComponent _component) : base(owner)
 {
     component = _component;
     owner.AddComponent(new AudioComponent(owner));
     audioComponent = owner.GetComponent <AudioComponent>();
 }