示例#1
0
        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");
        }
示例#2
0
        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);
        }
示例#3
0
        public override void Update()
        {
            base.Update();

            Odour.HandleOdourMarker(Owner.transform);
        }