コード例 #1
0
        public void SyncWith(BehavioursComponent behaviours)
        {
            foreach (var behaviour in behaviours.Behaviours)
            {
                if (GetStackCount(behaviour.Id) == 0)
                {
                    Apply(behaviour, behaviour.Caster);
                }

                Behaviours.First(b => b.Id == behaviour.Id).RemainingDuration = behaviour.RemainingDuration;
            }
        }