/* * Function: MovetoFlag * ---------------------------- * A method for moving to the enemy flag, if it is in sight * */ public void MovetoFlag() { if (!EnemyTeamFlagInSight()) { return; } LookAt(EnemyFlagInSight.GetLocation()); MoveTowards(EnemyFlagInSight.GetLocation()); }
public void MovetoFlag() { transform.LookAt(EnemyFlagInSight.GetLocation()); MoveTowards(EnemyFlagInSight.GetLocation()); }