Esempio n. 1
0
    void MagicTp()
    {
        aiLerp.ResetToDefault();
        ShipRoom rdmRoom = null;

        if (isAlly)
        {
            rdmRoom = mapSCR.GetRandomAllyRoom();
        }
        else
        {
            rdmRoom = mapSCR.GetRandomEnnemyRoom();
        }
        gameObject.transform.position = rdmRoom.roomPosition;
        MoveToNode(rdmRoom.roomPosition);
    }