public void RemoveFromCheckList(UnitInteraction item) { if (mCheckList.Contains(item)) { mCheckList.Remove(item); } }
public void AddToCheckList(UnitInteraction item) { if (mCheckList.Contains(item) == false) { mCheckList.Add(item); } }
protected override void Start() { base.Start(); mInteraction = this.GetComponent <UnitInteraction>(); mMotor = this.GetComponent <UnitMotor>(); mAttack = this.GetComponent <UnitAttack>(); mData = this.GetComponent <UnitData>(); }
private void Start() { if (!_assignedInteraction) { _assignedInteraction = GetComponentInChildren <UnitInteraction>() ?? GetComponent <UnitInteraction>(); } if (!_unitSoul) { _unitSoul = GetComponentInChildren <SoulFighter>() ?? GetComponent <SoulFighter>(); } UnitUI = GetComponent <UnitUI>() ?? GetComponentInChildren <UnitUI>(); }
protected void Awake() { mInteraction = this.GetComponent <UnitInteraction>(); mData = this.GetComponent <UnitData>(); }
public MapUnit() { Interaction = new UnitInteraction(this); }