Beispiel #1
0
 private void GameObjectDestroyed(object sender, GameObject e)
 {
     ObjectDestroy?.Invoke(this, e);
     _gameObjects.Remove(e);
     e.Moved     -= GameObject_Moved;
     e.Destroyed -= GameObjectDestroyed;
 }
Beispiel #2
0
    //-----------------------------------------------------
    //  削除
    //-----------------------------------------------------
    void DestroyObject()
    {
        //Effect生成
        ObjectDestroy efe = Instantiate(data.sandEfect, transformCache.position, Quaternion.identity);

        efe.Sand(data.sandPoint, SandSE);
        //削除
        Destroy(gameObject);
    }