Beispiel #1
0
    void attack()
    {
        //rendererColor.material.color = Color.red;

        // gameObject.tag = "TrapType1Thorn";
        TrapType1State = TrapType1State.attack;
    }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     //  trapType1ThornCollider = GetComponent<BoxCollider>();
     //trapType1ThornCollider.enabled = true;
     rendererColor  = gameObject.GetComponent <Renderer>();
     TrapType1State = TrapType1State.normal;
     gameObject.tag = "Untagged";
 }