public override void Init(ICEWorldBehaviour _component) { base.Init(_component); Corpse.Init(OwnerComponent); Odour.Init(OwnerComponent); m_InitialDurability = Random.Range(InitialDurabilityMin, InitialDurabilityMax); m_Durability = m_InitialDurability; PrintDebugLog(this, "Init"); }
public void Copy(EntityStatusObject _object) { if (_object == null) { return; } base.Copy(_object); IsDestructible = _object.IsDestructible; InitialDurabilityMin = _object.InitialDurabilityMin; InitialDurabilityMax = _object.InitialDurabilityMax; InitialDurabilityMaximum = _object.InitialDurabilityMaximum; Corpse.Copy(_object.Corpse); Odour.Copy(_object.Odour); }
public override void Update() { base.Update(); Odour.HandleOdourMarker(Owner.transform); }