Beispiel #1
0
    private void Awake()
    {
        rb = this.GetComponent <Rigidbody>();
        cc = this.GetComponent <InertiaCC>();

        InertiaCC.groundedAgain.AddListener(OnGroundedAgain);
    }
Beispiel #2
0
    private void OnTriggerEnter(Collider other)
    {
        InertiaCC cc = other.gameObject.GetComponent <InertiaCC>();

        if (cc)
        {
            CheckpointManager.singleton.LoadCheckpoint();
        }
    }