示例#1
0
    private void Id_InputChangedWithId(IInteractebleInput input, IComparable id)
    {
        // TODO: for IComparable interface
        int key = (int)id;

        InteractWithGameobject(input, key);
    }
示例#2
0
    protected override void InteractWithGameobject(IInteractebleInput input, int key)
    {
        GameObject     gameObject    = GetStoredObject(key);
        IInvertoryData invertoryData = gameObject.GetComponent <IInvertoryData>();

        if (invertoryData != null && invertoryData.Invertory != null)
        {
            invertoryData.Invertory.ResupplyWeapons();
        }
    }
示例#3
0
 // Use this for initialization
 void Start()
 {
     interactebleInput = new InteractableInput();
     interactionLogic  = new InteractionLogic(ref interactebleInput, this.gameObject.GetInstanceID());
 }
示例#4
0
 public InteractionLogic(ref IInteractebleInput input, int interactionID)
 {
     this.InputInfo = input;
     InteractionID  = interactionID;
 }
示例#5
0
 protected override void InteractWithGameobject(IInteractebleInput input, int key)
 {
     // TODO objective was successful ??? or manager class
 }
示例#6
0
 protected virtual void InteractWithGameobject(IInteractebleInput input, int key)
 {
 }