예제 #1
0
 private void Awake()
 {
     InvokeRepeating("GetNetPos", 0, 1);
     type       = PheromoneType.Queen;
     targetType = PheromoneType.Food;
     // pheromoneScale = 100;
     pos         = PheromoneMap.GetPos(this.transform.position);
     nextPos     = pos;
     targetLayer = (1 << LayerMask.NameToLayer("Food"));
 }
예제 #2
0
    private void SetPheromone()
    {
        var pos = PheromoneMap.GetPos(transform.position);
        var p   = pheromone.GetPreomone(pos);

        //Debug.Log(pos[0] + "," + pos[1]);
        p.scale[PheromoneType.Queen] += 400;
        if (p.scale[PheromoneType.Queen] > 600)
        {
            p.scale[PheromoneType.Queen] = 600;
        }
    }