private void Start() { Playermovement = GetComponent <Playermovement>(); coin = GameObject.Find("score").GetComponent <coin>(); score = GameObject.Find("score").GetComponent <score>(); highscore = GameObject.Find("score").GetComponent <highscore>(); }
// Start is called before the first frame update void Start() { x = transform.position.x; limiteBala = GameObject.FindGameObjectWithTag("limiteBala"); //Puntaje gameManagerOject = GameObject.FindGameObjectWithTag("GameManager"); //encuentrame GameManager highscoreScript = gameManagerOject.GetComponent <highscore>(); //Llamar a su componente }
void Start() { Coin = GameObject.Find("score").GetComponent <coin>(); Score = GameObject.Find("score").GetComponent <score>(); Highscore = GameObject.Find("score").GetComponent <highscore>(); rigidBody = GetComponent <Rigidbody>(); coroutine = WaitAndPrint(0.05f); StartCoroutine(coroutine); }
void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } Debug.Log("This is d player:" + PlayerPrefs.GetInt("HighScore").ToString()); }
public async Task <TableResult> InsertScore(highscore highscore) { TableResult result = await InsertEntity <highscore>(highscore); return(result); }
void Start() { instance = this; StartCoroutine(blink()); }