Beispiel #1
0
    /// <summary>
    /// 从对象池中取出漂浮文字对象,生命恢复 by何明军
    /// </summary>
    /// <param name="_pos"></param>
    /// <param name="_rot"></param>
    /// <returns></returns>
    public StateTexter SpawnStateTexter(int val)
    {
        //if (!SystemSettingMng.ShowStateTexts) return null;
        StateTexter stateTexter = stateTexterPool.Request();

        stateTexter.OnSpawned(val);
        return(stateTexter);
    }
Beispiel #2
0
    /// <summary>
    /// 从对象池中取出漂浮文字对象 by吴江
    /// </summary>
    /// <param name="_pos"></param>
    /// <param name="_rot"></param>
    /// <returns></returns>
    public StateTexter SpawnStateTexter(AbilityResultInfo _info)
    {
        //if (!SystemSettingMng.ShowStateTexts) return null;
        StateTexter stateTexter = stateTexterPool.Request();

        stateTexter.OnSpawned(_info);
        return(stateTexter);
    }
Beispiel #3
0
 /// <summary>
 /// 将漂浮文字的对象归还到对象池 by吴江
 /// </summary>
 /// <param name="_indicator"></param>
 public void DespawnStateTexter(StateTexter _stateTexter)
 {
     _stateTexter.OnDespawned();
     stateTexterPool.Return(_stateTexter);
 }