Ejemplo n.º 1
0
    void Start()
    {
        TIME = FindObjectOfType <TimeLimitter>();

        lower_ = GameObject.Find("LowerCount").GetComponent <SpriteRenderer>();
        upper_ = GameObject.Find("UpperCount").GetComponent <SpriteRenderer>();
    }
Ejemplo n.º 2
0
    void Start()
    {
        TIME = FindObjectOfType<TimeLimitter>();

        lower_ = GameObject.Find("LowerCount").GetComponent<SpriteRenderer>();
        upper_ = GameObject.Find("UpperCount").GetComponent<SpriteRenderer>();
    }
Ejemplo n.º 3
0
    void FindComponent()
    {
        if (time_limitter_ != null) return;
        foreach (var player in FindObjectsOfType<PlayerSetting>())
        {
            if (!player.isLocalPlayer) continue;

            time_limitter_ = player.GetComponent<TimeLimitter>();
            game_start_director_ = player.GetComponent<GameStartDirector>();
        }
    }
 void SearchTimer()
 {
     if (time_limitter_ == null)
     {
         foreach (var player in FindObjectsOfType<TimeLimitter>())
         {
             if (!player.isLocalPlayer) continue;
             time_limitter_ = player;
         }
     }
 }
Ejemplo n.º 5
0
    void FindComponent()
    {
        if (time_limitter_ != null)
        {
            return;
        }
        foreach (var player in FindObjectsOfType <PlayerSetting>())
        {
            if (!player.isLocalPlayer)
            {
                continue;
            }

            time_limitter_       = player.GetComponent <TimeLimitter>();
            game_start_director_ = player.GetComponent <GameStartDirector>();
        }
    }