Ejemplo n.º 1
0
 public override void OngoingFunctions(UnitDataStructure container)
 {
     if (UnitUtils.ComparePositionToVector2(this.gameObject.transform, UnitUtils.LeftOfEnemyPositionRelativeToSelfSpriteColliderSize(container.SelfSpriteCollider, container.enemyTarget)) == false)
     {
         UnitUtils.MoveUnitToBottomLeftSideOfEnemy(container.SelfSpriteCollider, container.enemyTarget, this.gameObject, container.speed);
     }
 }