void Start() { audio = GetComponent<AudioSource>(); player = PlayerInk.instance; collider = GetComponentInChildren<SphereCollider>(); anim = GetComponentInChildren<Animator>(); }
void Start() { player = PlayerMovement.instance; ink = PlayerInk.instance; health = PlayerHealth.instance; }
void Awake() { instance = this; }
void Start() { ink = inkObject.GetComponent<ParticleSystem>(); ink.enableEmission = false; jumpReleased = true; direction = Vector3.zero; wallJumpDirection = Vector3.zero; jumpPressed = false; controller = GetComponent<CharacterController>(); anim = GetComponent<Animator>(); health = PlayerHealth.instance; playerInk = PlayerInk.instance; sound = PlayerSound.instance; jumping = false; grounded = false; stuck = false; stickiness = 1; }