コード例 #1
0
    void Start()
    {
        guidingVoiceBehavior   = GuidingVoice.GetComponent <GuidingVoiceBehavior>();
        tractorBehavior        = TractorToModify.GetComponent <TractorBehavior>();
        colorDicatationService = this.gameObject.transform.parent.GetComponentInChildren <ColorDicatationService>();
        pointToObjectBehavior  = this.gameObject.transform.parent.GetComponentInChildren <PointToObjectBehavior>();
        if (pointToObjectBehavior == null)
        {
            Debug.LogError("no pointToObjectBehavior found", this);
        }
        else
        {
            Debug.Log("found pointToObjectBehavior", this);
        }

        LocationKeyWords.Add("WHERE");

        ModificationKeyWords.Add("CHANGE");
        ModificationKeyWords.Add("UPDATE");
        ModificationKeyWords.Add("MODIFY");
        ModificationKeyWords.Add("SET");
        ModificationKeyWords.Add("COLOR");
    }