Example #1
0
        void OnTriggerEnter2D(Collider2D other)
        {
            if (other.tag == "Player")
            {
                PlatformerCharacter2D player = other.GetComponent <PlatformerCharacter2D>();

                player.SetCheckPoint(transform.position);
            }
        }
Example #2
0
        void OnTriggerEnter(Collider other)
        {
            if (other.tag == "Player")
            {
                PlatformerCharacter2D player = other.GetComponent <PlatformerCharacter2D>();

                player.ResetPlayerPosition();
            }
        }
 private void Awake()
 {
     m_Character = GetComponent <PlatformerCharacter2D>();
 }
 private void Awake()
 {
     m_Character = GetComponent<PlatformerCharacter2D>();
 }