Beispiel #1
0
    void HandleInWaitZone()
    {
        DropPointLogic dropper_ = _door.GetComponent <DoorRobotInteraction>().dropper;
        PointsDrop     can      = dropper_.WhatDrop(gameObject.GetInstanceID());

        _op.SetTarget(_currentBoxPicked.box);
        _op.Stay();
        dropper_.waitZone = this;
        if (can != PointsDrop.NOTHING)
        {
            _rm.Move(dropper_.GetPoint(can));
            if (_rm.IsHeNearInstance(dropper_.GetPoint(can)))
            {
                dropper_.SetIDLE();
                dropper_.SetBotInDropZone(this, can);
                // Debug.Log("WE ARE GODS");
                _currentState     = RobotState.GONNADROP;
                dropper_.waitZone = null;
            }
        }
    }