using System.Collections; using System.Collections.Generic; using BITKit.Entities; using Unity.Mathematics; using UnityEngine; namespace BITFALL.Scene { public class PropImpact : MonoBehaviour,IScenePlayerImpact { [SerializeField] private Transform origin; [SerializeField] private Transform impact; private bool _impacted; public void OnPlayerImpact(IEntity entity, float4x4 matrix) { if(_impacted)return; if(origin) origin.gameObject.SetActive(false); if(_impacted) impact.gameObject.SetActive(true); } } }