public Hashtable GetDatabaseSave() { if (m_Data == null) { m_Data = new FounderCubeComponentData(); } return(m_Data.AsHash()); }
private void SetData(FounderCubeComponentData data) { m_Data = data; if (m_Data == null) { m_Data = new FounderCubeComponentData(); } nebulaObject.properties.SetProperty((byte)PS.CharacterID, m_Data.characterId); nebulaObject.properties.SetProperty((byte)PS.CharacterName, m_Data.characterName); nebulaObject.properties.SetProperty((byte)PS.GuildName, m_Data.guildName); nebulaObject.properties.SetProperty((byte)PS.OwnerId, m_Data.gameRef); nebulaObject.properties.SetProperty((byte)PS.GuildId, m_Data.guildId); nebulaObject.properties.SetProperty((byte)PS.Timer, m_Data.timer); }
public override void Update(float deltaTime) { if (false == m_Destroyed) { base.Update(deltaTime); if (m_Data == null) { m_Data = new FounderCubeComponentData(); } m_Data.timer += deltaTime; m_PropsTimer += deltaTime; if (m_PropsTimer >= 10.0f) { m_PropsTimer = 0f; props.SetProperty((byte)SPC.Timer, m_Data.timer); } if (m_Data.timer >= LIFE_TIME) { m_Destroyed = true; (nebulaObject as GameObject).Destroy(); } } }
public void Init(FounderCubeComponentData iNData) { SetData(iNData); }