public void ApplyCrowdControl(ICrowdControl cc) { if (cc.IsTypeOf(CrowdControlType.STUN) || cc.IsTypeOf(CrowdControlType.ROOT)) { StopMovement(); } _crowdControlList.Add(cc); }
public void ApplyCrowdControl(ICrowdControl cc) { if (cc.IsTypeOf(CrowdControlType.STUN) || cc.IsTypeOf(CrowdControlType.ROOT)) { StopMovement(); } ApiEventManager.OnUnitCrowdControlled.Publish(TargetUnit); _crowdControlList.Add(cc); }
private void OnTriggerExit(Collider collision) { if (timeBeforeActivation >= 0) { return; } MonoBehaviour[] list = collision.gameObject.GetComponents <MonoBehaviour>(); collision.gameObject.GetComponents <MonoBehaviour>(); foreach (MonoBehaviour mb in list) { if (mb is ICrowdControl) { ICrowdControl gameObject = (ICrowdControl)mb; overlappingObjects.Remove(gameObject); } } }
public void RemoveCrowdControl(ICrowdControl cc) { _crowdControlList.Remove(cc); }
private void SetSlow(ICrowdControl gameObject) { gameObject.SetSlowed(tag, slowMultiplier, slowDuration); }