public void Initialize(FloorGimicData.Param fgData, FloorGimicDatabase db) { Debug.Log ("[FloorGimic] Initialized: "+fgData.name ); m_fgData = fgData; m_sprite.SetSprite(m_fgData.graphic); m_spriteAnimator.Play(m_fgData.graphic); }
void Awake() { m_enemyDB = GetComponent<EnemyDatabase>() as EnemyDatabase; m_itemDB = GetComponent<ItemDatabase>() as ItemDatabase; m_fgDB = GetComponent<FloorGimicDatabase>() as FloorGimicDatabase; }