private void Awake() { rb = this.GetComponent <Rigidbody>(); cc = this.GetComponent <InertiaCC>(); InertiaCC.groundedAgain.AddListener(OnGroundedAgain); }
private void OnTriggerEnter(Collider other) { InertiaCC cc = other.gameObject.GetComponent <InertiaCC>(); if (cc) { CheckpointManager.singleton.LoadCheckpoint(); } }