Azarian

KARA - Food Drop

by Azarian

KARA - Food Drop Unity

Screenshots

KARA - Food Drop Unity
KARA - Food Drop Unity
KARA - Food Drop Unity
KARA - Food Drop Unity

Specification

How to Use

Sample Code

using UnityEngine; using System.Collections; public class SetScore : MonoBehaviour { public TextMesh bestScoreLabel; public TextMesh scoreLabel; void Start () { scoreLabel.text = "Score: " + GameManager.score.ToString(); if (GameManager.score > 0) { if (PlayerPrefs.GetInt("Score", 0) < GameManager.score) { PlayerPrefs.SetInt("Score", GameManager.score); PlayerPrefs.Save(); } } bestScoreLabel.text = "HighScore: " + PlayerPrefs.GetInt("Score", 0).ToString(); GameManager.score = 0; } }

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}}