public override void Hit(Snake snake) { if (!cellData.Hit(snake)) return; grid.GetComponent<MeshFilter>().mesh = ResManager.m_gridDarkBlockMesh; if (decal != null) ResManager.ReturnDecalObject(decal); decal = ResManager.CreateDecalObject(new Vector3(cellData.x + 0.5f, 0.705f, cellData.z + 0.5f), ResManager.DECAL_HIT); decal.transform.localScale = new Vector3(0.5f, 1, 0.5f); GameRuntime.ShakeCamera((new Vector3(0.2f, 0.4f, 1.0f)).normalized, 0.4f, 0.1f, 20); snake.SetSpeedTo(5, 10); }