Azarian

Kara - Water Hop

by Azarian

Kara - Water Hop Unity

Screenshots

Kara - Water Hop Unity
Kara - Water Hop Unity
Kara - Water Hop Unity
Kara - Water Hop Unity
Kara - Water Hop Unity

Specification

How to Use

Sample Code

using UnityEngine; using UnityEngine.SceneManagement; public class PlayerScript : MonoBehaviour { public bool isGrounded; void OnTriggerEnter2D(Collider2D col) { if (col.tag == "Ground") { isGrounded = true; } else if (col.tag == "Finish") { Invoke("BackToMain", 0.5f); } else if (col.tag == "Respawn" && col.name.Contains("Clock")) { GameObject.FindObjectOfType<GameManager>().currentTime = Time.time; Destroy(col.gameObject); } } void OnTriggerExit2D(Collider2D col) { if (col.tag == "Ground") { isGrounded = false; } } void BackToMain() { SceneManager.LoadScene("MainMenu"); } }

Video

Comments (0)

  • {{com.username}}
    {{com.username}}
    Buyer
    Seller

    {{com.username}}

    {{com.ctime}}

    {{com.content}}

    • {{com2.username}}
      {{com2.username}}
      Buyer
      Seller

      {{com2.username}}

      {{com2.ctime}}

      {{com2.content}}