void Awake()
 {
     RMenu = base.GetComponent <bl_RoomMenu>();
     RTime = base.GetComponent <bl_RoundTime>();
     SettingPropiertis();
     GetRoomInfo();
 }
Ejemplo n.º 2
0
    void Awake()
    {
        if (!PhotonNetwork.connected || PhotonNetwork.room == null)
        {
            return;
        }

        RMenu = base.GetComponent <bl_RoomMenu>();
        RTime = base.GetComponent <bl_RoundTime>();
        SettingPropiertis();
        GetRoomInfo();
    }
 /// <summary>
 ///
 /// </summary>
 protected override void Awake()
 {
     base.Awake();
     m_Transform = transform;
     bl_PhotonCallbacks.PlayerEnteredRoom += OnPhotonPlayerConnected;
     bl_AIMananger.OnBotStatUpdate        += OnBotStatUpdate;
     Agent                 = this.GetComponent <NavMeshAgent>();
     AIAnim                = GetComponentInChildren <bl_AIAnimation>();
     AIHealth              = GetComponent <bl_AIShooterHealth>();
     AIWeapon              = GetComponent <bl_AIShooterWeapon>();
     defaultSpeed          = Agent.speed;
     Anim                  = GetComponentInChildren <Animator>();
     ObstacleBetweenTarget = false;
     CoverManager          = FindObjectOfType <bl_AICovertPointManager>();
     AIManager             = CoverManager.GetComponent <bl_AIMananger>();
     TimeManager           = FindObjectOfType <bl_RoundTime>();
     DrawName              = GetComponent <bl_DrawName>();
     m_GameMode            = GetGameMode;
 }
Ejemplo n.º 4
0
    /// <summary>
    ///
    /// </summary>
    protected override void Awake()
    {
        base.Awake();
        if (!PhotonNetwork.connected || PhotonNetwork.room == null)
        {
            return;
        }

        RoomMenu     = base.GetComponent <bl_RoomMenu>();
        TimeManager  = base.GetComponent <bl_RoundTime>();
        UIReferences = bl_UIReferences.Instance;
        GameData     = bl_GameData.Instance;
#if BDGM
        BombDefuse = FindObjectOfType <bl_BombDefuse>();
#endif
#if CP
        CoverPoint = FindObjectOfType <bl_CoverPointRoom>();
#endif
        ResetRoom();
        GetRoomInfo();
    }
Ejemplo n.º 5
0
    void Awake()
    {
        if (!PhotonNetwork.connected || PhotonNetwork.room == null)
            return;

        RMenu = base.GetComponent<bl_RoomMenu>();
        RTime = base.GetComponent<bl_RoundTime>();
        SettingPropiertis();
        GetRoomInfo();
    }