void OnTriggerEnter2D(Collider2D other) { if (other.tag == "Player") { PlatformerCharacter2D player = other.GetComponent <PlatformerCharacter2D>(); player.SetCheckPoint(transform.position); } }
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>(); }