Example #1
0
    public override void Tick(Clock.EventType type)
    {
        switch (type)
        {
        case Clock.EventType.MainTick:
        default:
            if (CurrentPlayerOwner > GlobalData.NO_PLAYER)
            {
                currentUnits += 1 + currentLevel;
            }
            break;

        case Clock.EventType.IATick:
            break;
        }
    }
Example #2
0
    public override void Tick(Clock.EventType type)
    {
        if (planets.Count <= 0)
        {
            deactivated = true;
        }
        if (!deactivated)
        {
            if (type == Clock.EventType.IATick && AI != null)
            {
                //print("tick ia");
                PendingAICycle = true;

                /*StopCoroutine("AICycle");
                 * StartCoroutine("AICYcle");*/
            }
        }
    }
Example #3
0
 public abstract void Tick(Clock.EventType type);
Example #4
0
 public override void Tick(Clock.EventType type)
 {
     print("Tick de planeta " + type);
 }