예제 #1
0
    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);
    }
예제 #2
0
 void Awake()
 {
     m_enemyDB = GetComponent<EnemyDatabase>() as EnemyDatabase;
     m_itemDB = GetComponent<ItemDatabase>() as ItemDatabase;
     m_fgDB = GetComponent<FloorGimicDatabase>() as FloorGimicDatabase;
 }