void Start() { phView = GetComponent<PhotonView>(); alienScript = GetComponent<AlienPlayer>(); _controller = GetComponent<CharacterController>(); myCam = this.transform.FindChild("MyCam").GetComponent<Camera>(); if (!_controller) throw new System.NullReferenceException("CC nicht gefunden!"); }
private void Start() { alienPlayer = GetComponentInParent<AlienPlayer>(); SetTextToValue(); }