Exemplo n.º 1
0
    public void UpdateAgentObs()
    {
        if (currentObs != null)
        {
            Destroy(currentObs);
        }
        GameObject newobs  = Instantiate(blankObs, gameObject.transform);
        Observable obsInfo = newobs.GetComponent <Observable>();

        float time   = GameController.GetTime();
        int   zoneID = GameController.GetInstanceLevelController().GetZoneFromObj(gameObject);

        obsInfo.AddLocationClue(new LocationClue(agentId, zoneID, time));
        currentObs = newobs;
    }