示例#1
0
    // Update is called once per frame
    void Update()
    {
        //Debug.Log ("Calling Update");
        isSelected = this.Equals(gameManager.GetSelectedPlanet());

        PlanetStateChanges();

        timer += Time.deltaTime;
        if (timer >= GamePlay.PLANET_TICK)
        {
            PlanetTickUpdates();
            timer = 0;
        }

        PlanetFrameUpdates();
    }