void Start()
    {
        defenderParent = GameObject.Find("Defenders");
        tennerDisplay = GameObject.FindObjectOfType<TennerDisplay>();

        if (defenderParent == null){
            defenderParent = new GameObject("Defenders");
        }
    }
示例#2
0
 void Start()
 {
     worzelSound = GetComponent<AudioSource>();
     animator = GetComponent<Animator>();
     tennerDisplay = GameObject.FindObjectOfType<TennerDisplay>();
 }