示例#1
0
 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!");
 }
示例#2
0
	private void Start()
	{
        alienPlayer = GetComponentInParent<AlienPlayer>();

        SetTextToValue();
	}