// Start is called before the first frame update
 void Start()
 {
     this.transform.position = worldCylinder.transform.position + new Vector3(0, 0.5f, radius);
     col      = GetComponent <SphereCollider>();
     vj       = GetComponent <VerticalJump>();
     anim     = GetComponentInChildren <Animator>();
     rb       = GetComponent <Rigidbody>();
     coolDown = 0;
 }
Example #2
0
    private void Awake()
    {
        lm = GetComponent <LateralMovement>();
        vj = GetComponent <VerticalJump>();

        controls = GetComponent <DemonInput> ();

        uint userId = GetComponent <PlayerInput>().user.id;
    }