Exemple #1
0
    public void CompareAndScore()
    {
        if (objInCamSights != null)
        {
            if (objInCamSights.name.Contains(currentOBJTarget))
            {
                ScoreUpdate(true);
            }
            else if (objInCamSights.name.Contains("Sphere") || objInCamSights.name.Contains("Cube"))
            {
                //do nothing
            }
            else
            {
                ScoreUpdate(false);
            }
            spawner.DestroyObject(objInCamSights);
            UIManager.UI.dbCurrentlyHighlighted.text = "Currently Highlighted: ";

            objInCamSights = null; //get rid of what was just scored
        }
    }