Example #1
0
 public void UpdateFishLevelInfo(FishLevelInfo fishLevelInfo)
 {
     m_FishXP  = new FishXP(fishLevelInfo.m_FishLevel, fishLevelInfo.m_FishXP);
     m_FishHP  = new FishHP(fishLevelInfo.m_MaxHP, fishLevelInfo.m_LifeTime);
     m_Money   = new MoneyGeneration(fishLevelInfo.m_Money, fishLevelInfo.m_ProductTime);
     m_FishDam = new FishDam(fishLevelInfo.m_FishDam);
 }
Example #2
0
    public FishHP CloneFishHP()
    {
        FishHP hp = new FishHP();

        hp.m_CurrentHP   = m_CurrentHP;
        hp.m_MaxHP       = m_MaxHP;
        hp.m_CurrentTime = m_CurrentTime;
        hp.m_MaxTime     = m_MaxTime;
        hp.m_WithDraw    = m_WithDraw;

        return(hp);
    }
Example #3
0
    //float m_StartTime = 0;
    #endregion

    #region public methods
    public FishHPHandler(FishHP hp)
    {
        m_HP = hp;
        //m_StartTime = hp.m_CurrentTime;
    }