Beispiel #1
0
    // Start is called before the first frame update
    void Start()
    {
        Coli   = GetComponent <PlayerCollision>();
        Rigid  = GetComponent <Rigidbody>();
        Anim   = GetComponentInChildren <Animator>();
        Visual = GetComponent <PlayerVisual>();

        Cam = GetComponentInChildren <CameraCtrl>();
        Cam.GetComponent <CameraCtrl>().Setup(this.transform);
        Cam.transform.parent = null;
    }