Exemple #1
0
 public void RemoveFromCheckList(UnitInteraction item)
 {
     if (mCheckList.Contains(item))
     {
         mCheckList.Remove(item);
     }
 }
Exemple #2
0
 public void AddToCheckList(UnitInteraction item)
 {
     if (mCheckList.Contains(item) == false)
     {
         mCheckList.Add(item);
     }
 }
Exemple #3
0
 protected override void Start()
 {
     base.Start();
     mInteraction = this.GetComponent <UnitInteraction>();
     mMotor       = this.GetComponent <UnitMotor>();
     mAttack      = this.GetComponent <UnitAttack>();
     mData        = this.GetComponent <UnitData>();
 }
Exemple #4
0
    private void Start()
    {
        if (!_assignedInteraction)
        {
            _assignedInteraction = GetComponentInChildren <UnitInteraction>() ?? GetComponent <UnitInteraction>();
        }

        if (!_unitSoul)
        {
            _unitSoul = GetComponentInChildren <SoulFighter>() ?? GetComponent <SoulFighter>();
        }

        UnitUI = GetComponent <UnitUI>() ?? GetComponentInChildren <UnitUI>();
    }
Exemple #5
0
Fichier : Unit.cs Projet : U3DC/RTS
 protected void Awake()
 {
     mInteraction = this.GetComponent <UnitInteraction>();
     mData        = this.GetComponent <UnitData>();
 }
Exemple #6
0
 public MapUnit()
 {
     Interaction = new UnitInteraction(this);
 }