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