Unit.Update C# (CSharp) Method

Update() protected method

protected Update ( ) : void
return void
    protected override void Update()
    {
        base.Update ();

        // If the unit is currently moving, call the function to update
        // the position in the path the unit is following
        if (path != null && currentWaypoint < path.vectorPath.Count)
        {
            moveToPosition ();
        }
        else if (aiming)
        {

        }
    }

Usage Example

Example #1
0
 public override void ControllerUpdate()
 {
     foreach (var Unit in units)
     {
         Unit.Update();
     }
 }
All Usage Examples Of Unit::Update