コード例 #1
0
 private void Start()
 {
     Playermovement = GetComponent <Playermovement>();
     coin           = GameObject.Find("score").GetComponent <coin>();
     score          = GameObject.Find("score").GetComponent <score>();
     highscore      = GameObject.Find("score").GetComponent <highscore>();
 }
コード例 #2
0
ファイル: bala.cs プロジェクト: deltallye/GameEngines1
    // 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
    }
コード例 #3
0
    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);
    }
コード例 #4
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Destroy(gameObject);
     }
     Debug.Log("This is d player:" + PlayerPrefs.GetInt("HighScore").ToString());
 }
コード例 #5
0
        public async Task <TableResult> InsertScore(highscore highscore)
        {
            TableResult result = await InsertEntity <highscore>(highscore);

            return(result);
        }
コード例 #6
0
 void Start()
 {
     instance = this;
     StartCoroutine(blink());
 }