예제 #1
0
 void Start()
 {
     _unit       = GetComponentInParent <SimplePropagator> ();
     _eye        = GetComponent <SphereCollider> ();
     _eye.radius = unitProperties.range;
     _initHp     = unitProperties.hp;
 }
예제 #2
0
    public void DeadPropagator(SimplePropagator p, string type, int squad_no)
    {
        bool found = false;

        for (int i = 0; i < lowLevelMaps.Length; ++i)
        {
            if (type == lowLevelMaps[i].name)
            {
                _lowLevelIMs[squad_no][i].DeadUnit(p);
                found = true;
                break;
            }
        }
        if (!found)
        {
            print("Err: Type not found for dead: " + type);
        }
    }
예제 #3
0
 public void DeadUnit(SimplePropagator p)
 {
     _influenceMap.DeletePropagator(p);
 }
예제 #4
0
 public void RegisterPropagator(SimplePropagator p)
 {
     _influenceMap.RegisterPropagator(p);
 }
예제 #5
0
 public void DeletePropagator(SimplePropagator p)
 {
     _propagators.Remove(p);
 }
예제 #6
0
 public void RegisterPropagator(SimplePropagator p)
 {
     _propagators.Add(p);
 }